相关疑难解决方法(0)

OpenSSL - 0深度查找时出错18:自签名证书

我试图创建一个与MySQL一起使用的SSL证书,如下所述:http://dev.mysql.com/doc/refman/5.5/en/creating-ssl-certs.html

在验证证书时,我收到以下错误

  # openssl verify -CAfile ca-cert.pem server-cert.pem client-cert.pem
    server-cert.pem: C = IN, ST = KERALA, L = COCHIN, O = ABCD, OU = OPERATIONAL, CN = SATHISH, emailAddress = sathish@abcd.com
    error 18 at 0 depth lookup:self signed certificate
    OK
    client-cert.pem: C = IN, ST = KERALA, L = COCHIN, O = ABCD, OU = OPERATIONAL, CN = sathish, emailAddress = sathish@abcd.com
    error 18 at 0 depth lookup:self signed certificate
    OK
Run Code Online (Sandbox Code Playgroud)

有人可以根据上面链接中的文档帮助我生成密钥而不会出现任何错误.

mysql ssl openssl

25
推荐指数
2
解决办法
3万
查看次数

Golang 使用 SSL 证书连接到 Postgres

首先,问题与语言无关。我正在尝试编写一个使用 SSL 连接到 PostgreSQL 的简单应用程序。

  1. 我使用脚本创建了证书:
# Create CA private key
openssl genrsa -des3 -out root.key 4096
#Remove a passphrase
openssl rsa -in root.key -out root.key

# Create a root Certificate Authority (CA)
openssl \
    req -new -x509 \
    -days 365 \
    -subj "/CN=localhost" \
    -key root.key \
    -out root.crt

# Create server key
openssl genrsa -des3 -out server.key 4096
#Remove a passphrase
openssl rsa -in server.key -out server.key

# Create a root certificate signing request
openssl \
    req -new …
Run Code Online (Sandbox Code Playgroud)

postgresql ssl openssl go docker

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

openssl ×2

ssl ×2

docker ×1

go ×1

mysql ×1

postgresql ×1