2016-02-23 35 views
0

我有LEMP,我正在嘗試安裝PureFTPd and Quota。當我輸入以下命令:無法打開配置文件/usr/lib/ssl/openssl.cnf

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

我有錯誤:

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

我有這個文件:

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

我怎樣才能解決這個問題?

+0

Stack Overflow是一個網站用於編程和開發問題。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。另請參閱[我在哪裏發佈有關Dev Ops的問題?](http://meta.stackexchange.com/q/134306)。 – jww

回答

0

Ubuntu的地方openssl.cnf中的OpenSSL的這裏

/usr/lib/ssl/openssl.cnf

/usr/lib/ssl/openssl.cnf將被用來當你發出:

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