Apache supports HTTPS interviews

Source: Internet
Author: User

Apache supports HTTPS interviews


Create default certificate:
Install SSL module
# Yum–y install mod_ssl
Restart Apache Service
# Span style= "Color:rgb (255,0,0);" >service httpd Restart
Create a certificate manually:
Install OpenSSL
# yum–y Install OpenSSL Openssl-devel
To create the private key
# openssl Req-new-key server.key-out SERVER.CSR
Generate certificate CRT file
# OpenSSL x509–days 36500-req-in Server.csr-signkey Server.key-out server.crt
To move these three files to the certificate directory
# mkdir/etc/pki/tls/ Mycert
# mv server.*/etc/pki/tls/mycert
Specify certificate path
Open the SSL configuration file for Apache/etc/httpd/conf.d/ssl.conf
# vi/etc/httpd/conf.d/ssl.conf

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7F/C8/wKioL1csd5PTRoSdAAA1r8EmKV4345.png "title=" 111. PNG "alt=" Wkiol1csd5ptrosdaaa1r8emkv4345.png "/>

Save, exit
Restart Apache

This article from "Meteor Yu" blog, declined reproduced!

Apache supports HTTPS interviews

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.