View Single Post
Old 27th October 2005, 12:39
DarkBen DarkBen is offline
Join Date: Oct 2005
Posts: 70
Thanks: 1
Thanked 2 Times in 2 Posts
Default howto regenerate default certificate ?

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

Reply With Quote
Sponsored Links