howto regenerate default certificate ?

Discussion in 'Installation/Configuration' started by DarkBen, Oct 27, 2005.

  1. DarkBen

    DarkBen New Member

    Hello everybody !

    I have a problem with the default certificate in IPSConfig. I have an ISPConfig on debian Sarge (perfect setup howto tutorial). My server is on but when i connect to the webmail i have a security error what say that the owner of the certificate is www.snakeoil.dom. I know that this is the default domain when ssl is installed. How can i regenerate this certificate whis my own domain server ? I have find this on the forum :

    openssl genrsa -des3 -passout pass:yourpassword -out /root/ispconfig/httpd/conf/ssl.key/server.key2 1024
    openssl req -new -passin pass:yourpassword -passout pass:yourpassword -key /root/ispconfig/httpd/conf/ssl.key/server.key2 -out /root/ispconfig/httpd/conf/ssl.csr/server.csr -days 365
    openssl req -x509 -passin pass:yourpassword -passout pass:yourpassword -key /root/ispconfig/httpd/conf/ssl.key/server.key2 -in /root/ispconfig/httpd/conf/ssl.csr/server.csr -out /root/ispconfig/httpd/conf/ssl.crt/server.crt -days 365
    openssl rsa -passin pass:yourpassword -in /root/ispconfig/httpd/conf/ssl.key/server.key2 -out /root/ispconfig/httpd/conf/ssl.key/server.key
    chmod 400 /root/ispconfig/httpd/conf/ssl.key/server.key
    Is it ok with this code ?

    Thanks for your help

  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, that's ok.

Share This Page