Changes between Initial Version and Version 1 of faq/security/get-certificate


Ignore:
Timestamp:
Apr 17, 2009, 10:49:18 PM (16 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/security/get-certificate

    v1 v1  
     1= How do I get a Security Certificate for my Web site? =
     2
     3A security certificate is required if you want to offer a encrypted connection between your web visitors and your web site. An encrypted connection to a web site is typically indicated by a lock icon in your browser and most encrypted web sites have URLs that start with https instead of plain http.
     4
     5The purpose of a security certificate is to provide proof to the world that your web site is indeed operated by you (and not an impostor). For more information about security certificates, please see our [wiki:what_is_an_ssl_certificate certificate faq].
     6
     7Before you can get a security certificate attesting that you are who you say you are, you will need to generate two files:
     8
     9 * The private key is the file with the secret material that should only be accessible to the web server hosting your site
     10 * The certificate signing request is the non-confidential file generated based on your private key that you submit to a certificate authority
     11
     12Then, you will need to submit your certificate signing request to a certificate authority, such as [http://rapidssl.com RapidSSL] or [http://cacert.org cacert]. RapidSSL costs $79 per certificate and can generate a certificate for you that will be accepted by nearly all browsers on the planet. cacert will generate a certificate for free but users will need to import the cacert root certificate or they will get errors. We have a [ticket:1706 raging debate] about which approach is the best to take.
     13
     14To generate a private key and a certificate signing request, [wiki:secure_shell ssh] into your primary host and run:
     15
     16{{{
     17openssl req -new -nodes -out domain.csr -keyout domain.key -config /etc/ssl/openssl.cnf
     18}}}
     19
     20You will be prompted to answer a series of questions (with the defaults used by MFPL provided in brackets).
     21
     22The most important question is:
     23
     24{{{
     25Common Name (hostname, IP, or your name) []:
     26}}}
     27
     28You must type the exact domain name that will be used for your site (e.g. members.mayfirst.org).
     29
     30When the command has completed you should have two files: domain.csr (which can be submitted to the certificate authority) an domain.key which you should keep private.
     31
     32The certificate authority will respond with a certificate file. This file and your domain.key file can be used to [wiki:setup_security_certificate setup you web site to use a security certificate].