[Apache]SSL証明書更新にあたってCSRの作成


openssl genrsa -aes256 -out server.key 2048

openssl req -new -key server.key -sha256 -out server.csr -subj "/C=JP/ST=Tokyo/L=Tokyo/O=Tokyo University/CN=hoge.com"

openssl req -noout -text -in server.csr
  • Apache
SSLCertificateFile /etc/httpd/ssl/2022/server.crt
SSLCertificateKeyFile /etc/httpd/ssl/2022/server.key
SSLPassPhraseDialog exec:/etc/httpd/conf.d/passphrase.sh
  • passphrase.sh
#!/bin/sh
echo 'pass'
exit 0

 

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *