[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Linux in General  |  Linux Tutorials & How To's  |  Topic: How To - Generate Apache SSL Certificate
Welcome to LinuxCommunity

You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: How To - Generate Apache SSL Certificate  (Read 381 times)
0 Members and 1 Guest are viewing this topic.
dragoncity99
LST CareTaker
Experienced
*****
Offline Offline

Gender: Male
Posts: 529


View Profile
« on: October 29, 2009, 01:32:17 PM »

 1. Generate a Private Key
This key is a 1024 bit RSA key which is encrypted using Triple-DES and stored in a PEM format so that it is readable as ASCII text.

    openssl genrsa -des3 -out server.key 1024



2. Generate a CSR (Certificate Signing Request)

    openssl req -new -key server.key -out server.csr



3. Remove passphrase from key

    cp server.key server.key.org
    openssl rsa -in server.key.org -out server.key



4. Generating a Self-Signed Certificate for 365 days.

    openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt



5. Install the private key and certificate

    cp server.crt /usr/local/apache/conf/ssl.crt
    cp server.key /usr/local/apache/conf/ssl.key



6. Configuring SSL Enabled Virtual Hosts

    SSLEngine on
    SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    CustomLog logs/ssl_request_log \
    "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"



7. Restart apache and test

    service httpd restart
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Apache & PHP Linux Servers Support creator 3 1363 Last post May 05, 2005, 04:51:03 AM
by gauravbajaj
Apache Linux Servers Support dragoncity99 4 1208 Last post February 23, 2004, 05:49:54 PM
by dragoncity99
how to generate report by dansguardian Linux Proxy Server Support adarshkum 3 1622 Last post April 28, 2006, 08:01:14 AM
by gauravbajaj
Create SSL certificate in RHEL 5 for Apache web server Linux Servers Support idveera 1 2106 Last post January 18, 2009, 02:53:00 PM
by Ricky
about certificate creation Linux Development & Programming nileema 1 402 Last post October 29, 2009, 12:11:25 PM
by dragoncity99
Search LS
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 07:32:53 AM

Login with username, password and session length
Navigation
Recent Discussions
[September 06, 2010, 03:51:09 PM]

[September 06, 2010, 07:59:34 AM]

[September 03, 2010, 11:45:53 AM]

[September 02, 2010, 06:21:15 AM]

[September 02, 2010, 03:14:25 AM]

[August 31, 2010, 08:30:56 AM]

[August 31, 2010, 01:03:31 AM]

[August 31, 2010, 12:53:38 AM]

[August 31, 2010, 12:43:01 AM]

[August 22, 2010, 05:55:23 AM]
Members
Total Members: 7755
Latest: judah_clan
Stats
Total Posts: 9561
Total Topics: 2751
Online Today: 7
Online Ever: 128
(April 10, 2010, 10:24:17 PM)
Users Online
Users: 0
Guests: 9
Total: 9
Privacy Policy| Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Theme & TinyPortal v0.9.8 © Bloc