2
我想爲我的本地開發服務器擁有一個自簽名SSL證書。我在下面,你發出命令簽署通過發出以下命令在證書上https://help.ubuntu.com/community/OpenSSL,並在最後一步的指導:openssl:'policy'配置中的無效類型
openssl ca -in tempreq.pem -out server_crt.pem
我收到以下錯誤:(最後一行)
Using configuration from /home/user_name/.ssl/caconfig.cnf
Enter pass phrase for /home/user_name/.ssl/private/cakey.pem:
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :PRINTABLE:'localhost'
stateOrProvinceName :PRINTABLE:'AA'
countryName :PRINTABLE:'ET'
emailAddress :IA5STRING:'[email protected]'
organizationName :PRINTABLE:'Example Inc'
organizationalUnitName:PRINTABLE:'Development'
localhost:invalid type in 'policy' configuration
我能做些什麼來解決它?只是作爲背景,我的服務器沒有域名,所以我只是使用localhost作爲commanName。這是問題嗎?
感謝您的幫助。