viagra usa viagra pills discounts cialis levitra viagra buy cheap viagra uk sales viagra soft tablets mexico rx viagra cheap viagra germany viagra professional indian genric viagra viagra without rx viagra prescription or non overnight viagra how much viagra costs pfizer viagra cheap viagra in canada buy viagra no prescription pills viagra usa online sales viagra 100g viagra 50 mg delivery viagra 100 mg fast where can i get viagra germany generic viagra canada viagra fast viagra for wwomen overnight generic viagra cheap natural viagra delivery canadian viagra online sale canada non prescription viagra germany online viagra canada canada viagra viagra gel viagra no prescription canadian viagra germany viagra 100 cheap viagra canada viagra oral gel where to buy viagra online now buy viagra online without prescription viagra without a prescription viagra 100mg canadian pharmacy viagra how to buy viagra viagra pfizer viagra purchase discounts what kind of viagra canada viagra usa india viagra viagra discounts discounts viagra uk real viagra cheapest viagra online gel viagra viagra for sale viagra without prescription delivery canadian pharmacies/viagra now how does viagra work? usa pfizer viagra online viagra 100mg cheap where to get viagra for women uk now buy viagra cheap buy purchase viagra with no prescription pills generic viagra 50mg viagra soft viagra overnight canada buy india viagra buy how does viagra work viagra samples germany buy real viagra no rx viagra buy cheap viagra online pharmacy viagra - 100mg canadian buy viagra single online does viagra contains pork or alcohol should you use viagra with a catheter usa viagra sale viagra prescriptions buy pfizer viagra viagra prices usa viagra online sales now viagra side effects sales viagra price comparison viagra cost viagra sales viagra in mexico viagra low price cheap viagra price germany cost of viagra viagra sample germany purchase viagra 50mg reliable purchase of viagra where to buy viagra fast viagra discount viagra with no prescription viagra cheapest germany purchase viagra benefits of viagra germany generic viagra viagra online free viagra viagra drug buy viagra no prescription discount no prescription viagra viagra canadian pharmacy viagra no doctor fast viagra side effect viagra online ordering usa viagra on line usa is there a generic version of viagra buy viagra canada where can i get cheap viagra sales viagra now low price viagra usa discount viagra online viagra on sale cheap viagras viagra on line san marino viagra for women cialis best price cialis best way to take cialis discounts brand cialis discounts brand name cialis pharmacy buy cialis buy cialis without prescription sales buy generic cialis germany buy real cialis canada brand name cialis delivery canada pharmacy cialis canada pharmacy cialis soft buy canadian online cialis canadian pharmacy online generic cialis usa cheap cialis pharmacy cheap cialis no prescription cheapest cialis on the net cheapest price cialis fast cialis 100 cialis 100mg cialis 20mg cialis 30mg fast cialis 50mg cialis abdominal pain cialis age 45 fast cialis available cialis brand cialis canada online cialis canada pharmacy cialis canadian pharmacy cialis costs online cialis fast delivery germany cialis for sale now cialis for women cialis free cialis from canada now cialis from mexico cialis gel cialis generic cheap cialis generic on lice pills cialis in canada now cialis information canada cialis korea sales cialis levitra viagra canada cialis mailed overnight buy cialis medication sales cialis mexico cialis next day cialis next day delivery cialis no prescription pharmacy cialis online canadian delivery cialis online overnight germany cialis overnight cialis overnight delivery now cialis pills cialis pills canadian pharmacy sales cialis price pills cialis professional cialis professional singapore cialis purchase cialis purchase israel fast cialis sample cialis samples cialis side effects cialis suppliers fast cialis tablet sales cialis tablets cialis to children cialis without a prescription pills cialis without prescription pills discount cialis generic cialis buy generic cialis overnight online generic cialis overnight delivery online how cialis works delivery how much is cialis how to get cialis inquiry cialis sales low price cialis online name brand cialis canada next day delivery of cialis non-prescription cialis order cialis sales ordering cialis phentolamine in generic cialis professional cialis pharmacy canada purchase real cialis usa purchse cialis real cialis soft cialis where can i buy cialis where purchase cialis cheap where should i buy cialis online cheap where to buy real cialis buy why cialis does not work cialis daily usa generic viagra female viagra viagra buy cialis daily cialis viagra generic canada women viagra cialis price professional cialis online brand viagra professional online cialis dosage buy cialis no prescription now viagra gel viagra rx in canada buy cialis online canada fast brand viagra without prescription buy delivery viagra from india pills viagra 50 mg generic viagra made in india now cialis professional next day delivery buy cialis us discount viagra overnight delivery sales cialis soft viagra for cheap how to get viagra no prescription cialis professional 100 mg canada china viagra pharmacy buy viagra now price of cialis in canada delivery cheapest viagra online levitra vs viagra buying real viagra without prescription effect of cialis on women discounts cialis daily canada viagra in canada viagra canada pills how much does cialis cost canadian pharmacy cialis sales cialis for women viagra discount natural viagra viagra dosage germany cialis daily cialis without prescription pharmacy canadian pharmacy discount code viagra viagra soft tabs 100 mg now best viagra alternative delivery viagra tablets sale discount cialis herbal viagra viagra sales in canada viagra no prescription canada viagra generic where to purchase viagra canada buy cialis once daily sales viagra side effects viagra 100 mg sales pfizer viagra cheap 5 mg cialis buy viagra in canada no prescription canadian pharmacy viagra legal now price check 50mg viagra professional cialis online generic cialis canadian order usa viagra online now buy pfizer viagra online pills viagra cheap canada cialis professional germany buy cialis on line cheap viagra for sale mexico pharmacy cialis soft viagra real viagra without prescription discount brand name cialis buying cialis on line viagra online pharmacy usa canada online cheap viagra buy viagra china buy cialis generic cialis canada low cost viagra cialis women buy online pharmacy cialis usa cialis canadian pharmacy is pfizer viagra available in india delivery viagra fast delivery delivery get cialis online fast canada pharmacy viagra pfizer cialis professional no prescription cialis canadian pharmacy online overnight canadian viagra fast generic cialis soft tabs pfizer mexico viagra best cialis price viagra china viagra tablets canada cialis 50 mg viagra brand usa women viagra buy generic viagra made in india buy buy cialis without a prescription what better viagra or cialis canadain viagra india usa buy cialis without doctor prescription germany double dose of cialis 5 mg original brand cialis viagra no prescription sales does generic cialis work cheap viagra for women in india now one day delivery cialis pills buy cialis viagra canada generic viagra cheap canada sales buy cialis online uk how does viagra work viagra professional cialis soft canada sales cialis overnight cialis vs levitra cheap real viagra online buy cialis canada online buy viagra online viagra in india cost of viagra now female viagra viagra usa buy viagra cheap canada fast best price for generic cialis us discount viagra overnight delivery cheap viagra overnight delivery buy cialis online without prescription online order viagra overnight delivery buy cialis professional viagra in canada pfizer brand name cialis cialis fast delivery usa now pfizer viagra 50 mg online cheapest prices for viagra sales cheapest prices on viagra viagra canadian scam generic cialis in india cheap viagra for cheap cheap usa generic viagra cialis blood thinner cialisis in canada buy real cialis online overnight viagra buy get cialis online cialis for sale cialis low price cialis generic viagra order buying viagra buy viagra cookies cheap viagra oral gel pharmacy viagra samples viagra pfizer online viagra fast viagra dose sales viagra viagra cost no prescription viagra pills how to get cialis no prescription purchase cialis next day delivery canada viagra pharmacies scam brand name cialis overnight viagra online without a prescription pfizer viagra buy brand name cialis without prescription pills cialis and canada custom online viagra canadian pharmacy dosage cialis next day delivery fast brand viagra over the net can i get viagra in mexico online generic cialis 100 mg online pharmacy cialis low cost canadian viagra buy where to get viagra cheap now cialis canadian pharmacy sales where to get viagra cheap cialis samples in canada buy cialis doctor online viagra overnight delivery viagra generic canada pharmacy cialis germany pfizer female viagra cialis prescription

 

March 10, 2007

SSL - Certificates

Filed under: Technical Articles, Server Security — @ 4:36 am

What is SSL.

The Secure Socket Layer protocol was created by Netscape to ensure secure
transactions between web servers and browsers.SSL (Secure Sockets Layer), also known
as TLS (Transport Layer Security). The protocol uses a third party, a Certificate
Authority (CA), to identify one end or both end of the transactions.

Who are providers of SSL.

Though there are a large number of entities selling secure certificates, there are
primarily 6 major SSL certificate providers. They are given below.

The primary SSL certificate providers are:

* Verisign
* Thawte
* InstantSSL
* Entrust
* Baltimore
* Geotrust

How SSL works.

To initiate an SSL session, a web browser first makes contact with a webserver on
port 443, also known as HTTPS port. Once a socket connection has been established
b/w two machines, the following occurs.

1. A browser requests a secure page (usually https://).
2. The web server sends its public key with its certificate.
3. The browser checks that the certificate was issued by a trusted party
(usually a trusted root CA), that the certificate is still valid and that the
certificate is related to the site contacted.
4. The browser then uses the public key, to encrypt a random symmetric
encryption key and sends it to the server with the encrypted URL required as
well as other encrypted http data.
5. The web server decrypts the symmetric encryption key using its private key
and uses the symmetric key to decrypt the URL and http data.
6.The web server sends back the requested html document and http data encrypted
with the symmetric key.
7.The browser decrypts the http data and html document using the symmetric key
and displays the information.

Before going to SSl I would like to share some light on Cryptographic techniques.
1)Cryptographic Algorithms

Cryptographic Algorithms-
Suppose I want to send a message to bank requesting transfer of some money. I would
like the information to be private as it contains my account number and amont to
transfer. One solution is to use a cryptographic Alogrithms a technique that would
transfer my message in a encrypted form, unreadable except by bank. Once in this
form message may be encrypted only by the way of secret key. Two types of

1)Conventional cryptography.
Also known as symetric cryptography,requires sender and receiver to share a key.
also known as symmetric cryptography, requires the sender and receiver to share a key:
a secret piece of information that may be used to encrypt or decrypt a message.
If this key is secret, then nobody other than the sender or receiver may read the
message

2)Public key cryptography

Also known as asymmetric cryptography, it uses two keys each of may use to encrypt
message.
If one key is used to encrypt a message then the other must be used to decrypt it.
This makes it possible to receive secure messages by simply publishing one key (the
public key)
and keeping the other secret (the private key)

Creating a Certificate Service Request.

#cd /etc/httpd/conf
#make certreq

How to implement SSL in Windows Server.

1. Open the IIS Manager from the Programs | Administrative Tools menu.

2.In the left pane of the console, expand the node for your Web server name ,
and then expand the Web Sites folder

3. Right click the Web site for which you want to use SSL, and then select
Properties from the context menu.
This opens the Properties sheet for the site.

4.Under Secure Communications, click the Server Certificate button. This invokes the
Web Server Certificate Wizard.

5.Click the Next button on the first page of the Wizard.

6.On the Server Certificate page, you’ll see the following choices: Create a new
certificate,
Assign an existing certificate, Import a certificate from a Key Manager backup file,
Import a certificate from a .pfx file, or Copy or move a certificate from a remote
server to this site.
Make the appropriate selection and follow the steps.

7.To import a certificate, you’ll need to know:

* The path where the certificate is stored
* The password on the .pfx file.

8.To create a new certificate, you’ll need to send the request to a certificate
authority on your network,
or prepare the request and send it manually to a CA that’s not on your network.
You must enter the URL for the Web site and, if you intend to make the site
available over the Internet,
the name must match the external fully qualified domain name for the site.
If the site will only be available to intranet users, you can use the NetBIOS name.

9.If you’re creating a new certificate, you’ll need to enter your geographic location
(country, state/province and city/locality) on the Geographical Information page.

10.The certificate request will be saved as a text file if you chose to create the
request manually and send it later. Enter a name for the text file

11.Review the request information on the Request File Summary page and click
Next to generate the file. You can e-mail the file to a certification authority.

What is CA bundle.
The Intermediate CA certificates are contained within the ca-bundle file

What is CSR.
The Certificate Signing Request (CSR) contains information about your organization and the domain you wish to secure.

How to Install SSL on plain Linux Server.

First login to your server as root via SSH

Generating RSA & CSR (Signing Request)

# cd /etc/httpd/conf/ssl.key

# openssl genrsa -out www.yourdomain.com.key 1024

Generating the CSR using the RSA Private Key you have just generated

# cd /etc/httpd/conf/ssl.csr

# openssl req -new -key www.yourdomain.com.key -out www.yourdomain.com.csr

You will be asked to enter your Common Name, Organization, Organization Unit, City or Locality, State or Province and Country.
Do not enter these characters ‘< > ~ ! @ # $ % ^ * / ( ) ?.,&’ because they will not be accepted.

Common Name: the domain for the web server (e.g. www.yourdomain.com)
Organization: the name of your organization (e.g. Company Name)
Organization Unit: the section of the organization (e.g. Sales)
City or Locality: the city where your organzation is located (e.g. London)
State or Province: the state / province where your organzation is located (e.g )
Country: the country where your organzation is located (e.g GB) **NOTE the use of GB rather than UK when in the United Kingdom**

You may be asked for a challenge password. You can skip this by just hitting enter

Now you should have:

/etc/httpd/conf/ssl.key/www.yourdomain.com.key
/etc/httpd/conf/ssl.csr/www.yourdomain.com.csr

Make a backup copy of your private key! If you lose it, you will have to purchase a new SSL Certificate!

You can now view your CSR by:

# more www.youromain.com.csr

Send the CSR information to CA for validation.

Installing the SSL Certificate for Apache

# cd /etc/httpd/conf/ssl.crt

Copy the certificate from your account into a file called www.yourdomain.com.crt
Open your httpd.conf file and place the following code in your virtualhost

<IfDefine SSL>
<VirtualHost 12.34.56.87:443> **ENTER YOUR OWN DEDICATED IP ADDRESS**
ServerAdmin …your details…
DocumentRoot …your details….
ServerName www.yourdomain.com
SSLEnable
SSLCertificateFile /etc/httpd/conf/ssl.crt/www.yourdomain.com.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/www.yourdomain.com.key
</VirtualHost>
</IfDefine>

Restart apache
# /etc/rc.d/init.d/httpd restart

You should now be able to access https://www.yourdomain.com

Article Authored by Siby

Author, Siby, is a Systems Engineer with SupportPRO. Siby specializes in Cpanel and DirectAdmin servers. SupportPRO offers 24X7 technical support services to Web hosting companies and service providers.


AddThis Social Bookmark Button
« Previous Page

Powered by WordPress