SSLCertificateKeyFile /etc/apache2/ssl//apache.key SSLCertificateFile /etc/apache2/ssl//apache.crt # SSLCertificateFile directive is needed. # If both key and certificate are stored in the same file, only the # /usr/share/doc/apache2.2-common/ for more info. # A self-signed (snakeoil) certificate can be created by installing ![]() # Enable/Disable SSL for this virtual host. ![]() Make entries in your Virtualhost files ( called nf ), with sudo nano /etc/apache2/sites-available/nf ![]() Make directory to add certificates: mkdir -p /etc/apache2/ssl/Ĭreate a self signed certificate: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl//apache.key –out /etc/apache2/ssl//apache.crtĮnable the ssl module with: sudo a2enmod ssl You make modifications in apache's /etc/apache2/nf to inform apache to listen on these different ports: Listen 8080
0 Comments
Leave a Reply. |