Configure the ssl Secure Connection of Apache in Ubuntu

Source: Internet
Author: User
Environment: Ubuntu6.06, Apache2.0.55 Step 1: generate the sslcertficate file first of course is the normal installation of apache2, And then: The sudoapache2-ssl-certificate generates a 1024-bit RSA private key, and save it as/etc/apache2/ssl/apache. pem. If you already have a CA certificate, you can also use it directly or use it to generate the private key (this should belong

Environment: Ubuntu 6.06, Apache 2.0.55

Step 1: generate an ssl certficate File

First of all, you can install apache2 normally. Then:

Sudo apache2-ssl-certificate

Generate a 1024-bit RSA private key and save it as/etc/apache2/ssl/apache. pem. If you already have a CA certificate, you can use it directly or generate the private key (this should be another topic, and I have never used it ).

Apache2-ssl-certificate Execution Process to answer some questions, as follows, note that if [] has given the default value, and you want to leave this blank, you can enter the English periods ".":

Country Name (2 letter code) [GB]: US

State or Province Name (full name) [Some-State]:.

Locality Name (eg, city) []:

Organization Name (eg, company; recommended) []:.

Organizational Unit Name (eg, section) []:.

Server name (eg. ssl. domain. tld; required !!!) []: Localhost

Email Address []: fwolf@mail.com

Generally, the server name is more convenient than the actual website domain name.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.