Full stack HTTPS

Source: Internet
Author: User

Preface: Use a certificate that has been signed by a private CA in httpd to provide an HTTPS service externally
    • 配置httpd服务支持使用https
1: Configure HTTPD to support the use of SSL, and the certificates usedYum-y Install Mod_ssl2: View mod_ssl Add to httpd configuration file via Rpm-ql mod_ssl[[Email protected] ~]# RPM-QL Mod_ssl/etc/httpd/conf.d/ssl.conf/etc/httpd/conf.modules.d/00-ssl.conf /usr/lib64/httpd/modules/mod_ssl.so /usr/libexec/httpd-ssl-pass-dialog/var/cache/httpd/ssl 3: Configuration file:/etc/httpd/conf.d/ssl.conf # Site Directory for HTTPS requestsDocumentRoot"/var/www/html"Note: The www.uplooking.com defined here is not associated with the FQDN defined in vhost.conf, which means that/etc/httpd/conf.d/ The access mode of the FQDN can also be defined in the ssl.conf file, but is HTTPS-based, with a port of 443 listening, and the/etc/httpd/conf.d/ Only one FQDN can be defined in the ssl.conf file, and multiple FQDNs may be defined in the vhost.conf file# Specify an HTTPS-based FQDNServerName www.uplooking.com# This is the server-side certificate returned after the CA visaSslcertificatefile/etc/httpd/ssl/httpd.crt # This is the server-side key generated via OpenSSLSslcertificatekeyfile/etc/httpd/ssl/httpd.key 4: Test the HTTPS-based access Web service to see if the SSL session can be decoded (need to modify the /etc/hosts file) OpenSSL s_client-connect www.uplooking.com:443-cafile /etc/pki/ca/cacert.pem 5: Use browser to access https://www.uplooking.com (need to modify Hosts file) 6: Import the CACERT.PEM into the browser and ask again

Full stack HTTPS

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.