/var/ssl-ca

Change to the direcotry /opt/CA and type in:

CA.pl -newca

In the following questions hit ENTER on CA certificate filename and then enter a passphrase for the root certificate. Make sure it is complex and secret. DO NOT LOOSE THIS PASSWORD!!! EVER!!
Fill in the rest of the questions and if you notice in the [] fields are the defaults which you changed earlier. You can just hit ENTER and it will take the defaults. Once you are done look into your /opt/CA/ direcoty it shoud looke like this:

CA step 4

…and that is pretty much it. You now have a CA. Granted you probably have no idea what to do with it but that will change in the next few lines :) but first change the $DAYS variable in the CA.pl file back to 365 or any amount of days that your certificates should be valid.

We will now make the certificate you created a ?public? root certificate that you can use on your clients and give to your partners so that they can install it as a trusted certificate, by issuing this command:

openssl x509 -in cacert.pem -out 2blocks-root.crt

The resulting file 2blocks-root.crt you can publish. If you want to verify that your certificate is indeed a root certificate and working, put it on a website and point your webbrowser to it, it will show you what it is and ask you to add it to the trusted certificates like with Firefox you can see it in these screenshots. However this is just for verification, we will go into detail on this much later:
CA STEP 5

CA STEP 6

There you have it, you now have a CA and your root certificate is ready to be shared. Make sure you backup and store the cakey.pem file VERY securely.

If you have any suggestions or do not understand something please mail me or comment here and I will answer your questions.

//Flosse

Click here if you want to see the full index and brief of the OpenSSL for eveything “project”

No Tags
Digg!

Popularity: 5% [?]

Pages: 1 2