Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在MySQL和PostgreSQL server中启用SSL_Mysql_Ssl Certificate_Postgresql 9.5 - Fatal编程技术网

在MySQL和PostgreSQL server中启用SSL

在MySQL和PostgreSQL server中启用SSL,mysql,ssl-certificate,postgresql-9.5,Mysql,Ssl Certificate,Postgresql 9.5,目前,我已经使用了MySQL 6.5和PostgreSQL 9.5版本。我需要在两台服务器中启用(配置)SSL。我现在有(.pfx)SSL证书。您能建议我如何在两台服务器中配置SSL吗。我已经在网上搜索了很多文档,但我没有得到任何明确的想法 操作系统:Windows 10对于PostgreSQL,您需要一个crt和密钥文件。 要获取crt密钥文件,可以使用以下命令- openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypte

目前,我已经使用了MySQL 6.5和PostgreSQL 9.5版本。我需要在两台服务器中启用(配置)SSL。我现在有(.pfx)SSL证书。您能建议我如何在两台服务器中配置SSL吗。我已经在网上搜索了很多文档,但我没有得到任何明确的想法


操作系统:Windows 10

对于PostgreSQL,您需要一个crt和密钥文件。 要获取crt密钥文件,可以使用以下命令-

openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]
注意:根据您的pfx文件,您可能必须使用pkcs8/pkcs7

现在将在postgresql.conf文件中使用它,请参阅本文以确定需要在此处设置的属性-

密钥是-ssl\u证书文件、ssl\u密钥文件