A free server certificate using the service from http://www.startssl.com/ is a better choice than a self-signed certificate. Please note that The Uniform Server developers have no relation or affiliation with this site. The material is included here only to provide a better alternative to a self-signed certificate. Other choices likely are available. StartSSL (StartCom) is a public certification authority providing digital certificates for free! They have their root certificate in all major browsers, which means that certificates issued by StartSSL are trusted by default. Major browsers include Firefox, Internet Explorer, Gogole Chrome, Safari and Opera. The term free means just that, no hidden catches or trials, so The Uniform Server support now includes support for StartCom. Obtaining a free server certificate requires a number of steps. First you need to have a registered domain name, then you create a certificate-signing request and obtain a personal ID certificate by registering with StartCom. With this in place, you can login to StartCom and have your certificate signed. Finally you install this certificate on your server. This page covers each step in more detail. Register a domain nameRegister a domain name with a registrar of your choice. The information you supply pertains to the domain you are registering. Of importance for obtaining a free certificate is the contact e-mail address you supply. I am referring to the address where a registrar can contact you. This e-mail address will be used by StartCom to verify who you are (domain name). Alternatively, if your domain name is active (site has a mail-server) the site email address can be used for verification. Note: Your registrar contact e-mail address allows you to obtain a signed certificate before making your site live. This allows you to test your site locally with a signed certificate and confirm that Apache’s SSL Vhost server verification chain works. Create an account at StartSSLCreating an account at StartSSL can be done in advance. You are asked for certain details that identify you. This information is used for creating a personal identification (ID) certificate that is installed into your browser. One purpose of this certificate is to automatically log you into your StartSSL account.
Note: Backup your client certificates! Check this link and follow the instructions appropriate for your browser. Creating a certificate signing request (CSR)Generating a certificate-signing request is similar to generating a self-signed certificate. The only difference is to change Hostname from localhost to your registered domain name. For a free StartCom certificate, this field is the only one that is part of the certificate. If you change any of the other fields, the class of the certificate changes as well as its cost, and will require further validation. These instructions cover only the free certificate.
Note 1: The empty file server.crt is where you will copy your signed certificate. Folder UniServerZ\certs is used only to store your original certificates. It keeps them as a separate group. Note 2: Folder UniServerZ\certs is just an example. Ideally you would save its final content to a pen drive, writable CD or another PC for safekeeping. Sign certificate at StartSSLLogin to StartSSL
Validation Wizard
Certificates Wizard
Download StartCom CA Certificates - InformationNote: This section is for information only. The required certificates are preinstalled. A signed certificate requires a verification chain. To implement this on Apache, two additional certificates are required. Download these from StartSSL
Note: If you have a higher validated server certificate you need to use the class2 or class3 intermediate CA certificate. Install certificatesCopy the two files server.key and server.crt to Apache folder server_certs
Edit SSL Configuration fileTwo lines require enabling in Apache’s SSL configuration file as follows: Edit file: UniServerZ\core\apache2\conf\extra\ssl.conf Locate these two lines: #SSLCertificateChainFile ${US_ROOTF}/core/apache2/server_certs/sub.class1.server.ca.pem #SSLCACertificateFile ${US_ROOTF}/core/apache2/server_certs/ca.pem Remove the # to enable as shown below: #SSLCertificateChainFile ${US_ROOTF}/core/apache2/server_certs/sub.class1.server.ca.pem #SSLCACertificateFile ${US_ROOTF}/core/apache2/server_certs/ca.pem Note: The environoment variable ${US_ROOTF} is automaticaly set to the Uniform Server Zero top-level folder for example C:/UniServerZ Local TestBefore going live with your secure server you can test it locally. To do this your domain name (example fred.com) must resolve to an IP address. Refer to this page Server Name for details use either option 1 or option 2 Option 1: Is assumed. Entry automatically made in Uniform Server's PAC file
Note: Replace fred.com with the hostname you used when creating your CSR. Be sure to remove this line when you are ready to go live. Where to nextApache SSL Introduction and overview. Self-signed Self-signed test certificate details. |