Apache configuration HTTPS service

1. Generate an SSL certificate

The process of configuring the SSL certificate under Apache is basically the same as that under Nginx, except that the configuration file is written differently. The following describes in detail how to configure the SSL certificate under Apache and enable the https service.

To configure an SSL certificate, there are two steps, namely signing a third-party trusted SSL certificate and configuring HTTPS. Among them, signing a third-party trusted SSL certificate requires us to provide a certificate signing request file (CRS) file, which is configured under Apache HTTPS service requires a certificate private key file (key), and we can generate these two files through the openssl command, the operation is as follows:

[root@iZ23sl33esbZ ~]# openssl req -new -newkey rsa:2048 -sha256 -nodes -out ixdba.csr -keyout ixdba.key -subj "/C=CN/ST=beijing/L=beijing/O=iivey Inc./OU=Web Security/CN=www.ixdba.net"

After the command is executed, two files will be generated, namely the certificate private key file ixdba.key and the certificate signing request file ixdba.csr.

Then, provide the generated CSR file to the CA organization. After the signing is successful, the CA organization will send us a CRT certificate file. Assume that the file is ixdba.crt. After obtaining the SSL certificate file, it can be in the Apache configuration file. HTTPS is configured.

2. Configure HTTPS service

Configure HTTPS service&#x

Guess you like

Origin blog.csdn.net/qq_35029061/article/details/132179602