• Home
  • Cisco
  • Exchange
  • Linux
  • Navision
  • Network
  • Virtualization
  • Windows
  • About
  •  

    SSL in Debian Etch


    Install and setup apache2:
    apt-get install apache2
    apt-get install openssl ssl-cert
    apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi

    create a certificate:
    openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
    chmod 600 /etc/apache2/apache.pem

    a2enmod ssl
    /etc/init.d/apache2 restart

    Edit the conf files:
    NameVirtualHost *:80
    NameVirtualHost *:443

    SSLEngine on
    SSLCertificateFile /etc/apache2/apache.pem

    /etc/init.d/apache2 restart

    Exit mobile version