Current location - Quotes Website - Personality signature - Configure the Apache HTTP Server to be accessed via https. Urgent, thank you.
Configure the Apache HTTP Server to be accessed via https. Urgent, thank you.

First, is there any problem with the certificate generated by your openssl? I don't know if you are generating it in windows or linux? It is recommended that you generate it in linux.

Create a self-signed certificate valid for one year

openssl req -new -x509 -days 365 -nodes -config openssl.cnf -out mmc.pem -keyout mmc.pem

Second, it seems that the httpd port does not need to be configured. What you configure is the port for http access. You need to configure it in SERVER[socket] and add ssl.engine = "enable" ssl.pemfile="xxx.pem"