Unable to open config file /usr/lib/ssl/openssl.cnf

你离开我真会死。 提交于 2019-12-12 06:31:41

问题


I have LEMP and I'm trying to install PureFTPd and Quota. When I enter the following command:

openssl req -x509 -nodes -days 7300 -newkey rsa:2048 \
  -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem

I have error:

WARNING: can't open config file: /usr/lib/ssl/openssl.cnf
Unable to load config info from /usr/lib/ssl/openssl.cnf

I have this file:

find / -name openssl.cnf
/usr/lib/ssl/openssl.cnf
/etc/ssh/ssl/openssl.cnf

How can I fix this issue?


回答1:


Ubuntu places openssl.cnf for the OpenSSL here

/usr/lib/ssl/openssl.cnf

/usr/lib/ssl/openssl.cnf will be used when you issue:

openssl s_client -connect example.com:443 -tls1 -example.com localhost



来源:https://stackoverflow.com/questions/35590151/unable-to-open-config-file-usr-lib-ssl-openssl-cnf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!