在Azure VM 的Apache2配置SSL

openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
scp -i {xxx}.pem cgmh.key user@ip:/tmp
scp -i {xxx}.pem cgmh.cer user@ip:/tmp
sudo nano /etc/apache2/sites-available/default-ssl.conf .
SSLCertificateFile      /etc/ssl/cgmh.crt
SSLCertificateKeyFile /etc/ssl/cgmh.key
sudo systemctl restart apache2

--

--

NTUT CSIE | Biomedical Informatics Lab | github.com/stwater20 | sectools.tw

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store