![]() | ![]() | |
| Home - Certificates - Obtaining | ||
How to obtain an SSL certificate for your server
This guide requires that you have OpenSSL installed on your computer. There are many ways to create certificates, many of them are vendor-specific. For instance, Stronghold has it's tools for this. However, most of them are just calling the relevant openssl commands. In case you are using Tomcat or Java you'll need to use keytool to manage this process. When you are done, you will have three files.
Sometimes your certificate will need to have another certificate, called an intermediate certificate, added to it to make it work. This means you concatenate them together. Note that the frank.csr is not really needed once you have received your signed certificate. Also, you should replace "frank" with the hostname of your server. If you want to get a user (S/MIME) certificate for email exchange, make sure to specify the right options. So without further ado, here are the steps.
For reference, here is what the (example) frank.key would look like:
-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQCs9SWpThx33TD4gXYfNK/akss4fjs21K7VhTqIjMkMIYx6Hux7 wN2ED7xbMnkxuXlToQcRqq+bUfVIrpb4B76bVEueXrYc7JSYb2C4+PkYHgL623PB (...edited for brevity...) BgDJKdxulZrj+nx+STcCQQCIk8J1YyR1AKD4HTOKrVE+a+DPk+OFXoyPmPpqaLqO 0Ocwl8xVMh/pcbbRFpnNTt3n8sIO0fcTiUqUFUVL54+x -----END RSA PRIVATE KEY-----
You will be asked for various information. Make sure to type the server's host
name e.g. www.example.com when asked for the "Common Name". For email address, we recommend you leave
that value blank.
For reference, here is what the (example) frank.csr would look like: -----BEGIN CERTIFICATE REQUEST----- MIIBqTCCARICAQAwaTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldhc2hpbmd0b24x EDAOBgNVBAcTB1NlYXR0bGUxDTALBgNVBAoTBFRlc3QxDTALBgNVBAsTBFRlc3Qx (...edited for brevity...) 9TcY7meRquz/20ZSKw4jB6gMw+jV7nPAEgpgN+kw6D0WMDCoDoV9QwzL/GaAfqtB Jrys9jMFV6x5WX0bdixAUmdBarFF42mLAm3eHhlfAFF/eTew+DKTkKc7bK8M -----END CERTIFICATE REQUEST-----
1 an advantage of using one of these established and public CAs is browser recognition and the trust factor.
A third option is to run your own private CA (see here) if you like. Consider software like XCA, tinyCA or openca to manage this function. One way or another you must have a signed certificate which vouches for your identity too some degree. It is the public-key side of the key pair, and can be published to anyone without any concern for compromise.
Congratulations! You have now secured your server!
See Also...
| ||
|
Comments or questions? Email webmaster@credentia.cc
©2003-2009 Credentia, All Rights Reserved | ||