DelphiFAQ Home Search:

How to create my own self-signed web server certificate

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

I want to set up a test web server and use secure http (https). How can I create my own certificate without paying to Verisign?

Answer:

You only need to download the tool openssl. Then you can do these 3 steps:
  1. 1) Create a Private Key
    openssl genrsa -des3 -out our_system.key 1024

    or - if you want to set a password:
    openssl genrsa -out our_system.key 1024

  2. 2) Create a Certificate Signing Request
    openssl req -new -key our_system.key -out our_system.csr -config openssl.cnf

  3. 3) Creating a Self-Signed Certificate
    openssl req -new -key our_system.key -x509 -out our_system.crt -config openssl.cnf

Note: openssl.cnf is a config file with all the default information. You probably don't have this at hand. Remove the -config openssl.cnf in that case.

Put those three files (our_system.*) in the location as specified in apache's httpd.conf configuration file.




Comments:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
Leave your comment here:
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.