User Tools

Site Tools


apache_ssl

This is an old revision of the document!


Source http link...

openssl req -new -x509 -days 1461 -nodes -out cert.pem -keyout cert.key -subj “/C=RU/ST=SPb/L=SPb/O=Global Security/OU=IT Department/CN=test.dmosk.local/CN=test”

apachectl -M | grep ssl

yum install mod_ssl

systemctl restart httpd

vi conf.d/site.conf <VirtualHost *:443>

  SSLEngine on
  SSLCertificateFile ssl/cert.pem
  SSLCertificateKeyFile ssl/cert.key

</VirtualHost>

apachectl configtest

apache_ssl.1706967283.txt.gz · Last modified: 2024/02/03 13:34 by ryas