User Tools

Site Tools


apache_ssl

Source http link #1... Source http link #2...

  • 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
  • apachectl graceful
apache_ssl.txt · Last modified: 2024/02/03 13:41 by ryas