ローカル開発サーバー用の自己署名SSL証明書が必要です。私はhttps://help.ubuntu.com/community/OpenSSLのガイドに従っており、最後のステップで、次のコマンドを発行して証明書に署名するコマンドを発行しました。
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:'user@example.com'
organizationName :PRINTABLE:'Example Inc'
organizationalUnitName:PRINTABLE:'Development'
localhost:invalid type in 'policy' configuration
それを解決するために私は何ができますか?バックグラウンドとして機能するために、サーバーのドメイン名がないため、ローカルホストをcommanNameとして使用しました。それが問題ですか?
ご協力いただきありがとうございます。