Archive

Posts Tagged ‘server certificate’

How to Create and Use a Self-Signed Server Certificate in Directadmin

April 12th, 2009 No comments

If you would like to use SSL for your needs, you should have a certificate. Certificates are usually purchased, but if you need just to use SSL for your own needs, you don’t need to. There is a command that allows you to create a shared certificate for your server and use it for your own needs.

/usr/bin/openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server.key -out /etc/httpd/conf/ssl.crt/server.crt -days 999  -nodes

This command will create the for your server and then will ask for some information from your part.

That’s it! Then you need to go to the domain you’d like to enable SSL for and check “Use the server’s shared signed certificate.