The current environment Apache-2.4.46 + openssl-1.1.1g is enough;
It is recommended to add the following when compiling and installing related plug-ins:
yum install -y gcc
yum install -y gcc-c++
Unzip:tar -zvxf apr-1.7.0.tar.gz
Detection: cd apr-1.7.0
./configure --prefix=/usr/local/apr
Compile: make && make install
Decompression:tar -zvxf apr-util-1.5.4.tar.gz
Detection: cd apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
Compile: make && make install
If it appears when Ps:make#include <expat.h> ^ compilation terminated.Error, pleaseyum install -y expat-develInstall dependent libraries.
Decompression:tar -zvxf pcre-8.43.tar.gz
Detection:cd pcre-8.43
./configure --prefix=/usr/local/pcre
Compile:make && make install
After the above three files are compiled and installed, Apache and openssl can be officially compiled and installed. In this way, many problems that appear during the compilation process will be reduced and then searched everywhere...
Formal process: first unzip openssl and apache and then continue...
cd openssl-1.1.1g
./configure --prefix=/usr/local/openssl
make && make install
cd apache-2.4.46
./configure --prefix=/usr/local/apache2446 --enable-so --enable-ssl --enable-cgi --enable-rewrite --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork --with-zlib --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-ssl=/usr/local/openssl
make && make install
——If there is no error in the above process, then the compilation and installation process of the entire environment is over, and the next step is to configure SSL
——Ps:The directories in the above steps are all the directories of the test environment. Please adjust the specific path according to your actual environment!
The environment is set up. Then it is necessary to test whether it can be started normally;
First cut to the bin directory of apapche2446, pass ./apachectl start Start; if correct, passingnetstat -tunlp | grep “80” Check if the port is listening, if it indicates that http port 80 is OK;
Next, configure the SSL certificate: you can use thebuy.wosign.com Make a
The approximate configuration is as follows, reference: also cut to the conf directory of apache2446
vi httpd.conf Perform certificate configuration
Remember to turn on: LoadModule ssl_module modules/mod_ssl.so —— SSL module

Finally save and exit;
Then cut to the bin directory. by ./apachectl -t Check whether the current configuration is normal;
My return is the following error:
Cannot load modules/mod_ssl.so into server: libssl.so.1.1: cannot open shared object file: No such file or directory
Finally, the steps in this post have been resolved:
Then restart apache;
Same: Passnetstat -tunlp | grep “443” Check whether the port is listening, if it indicates that https 443 port is OK;
The latest versions of Firefox and Google already support the TLS1.3 protocol. And the openssl version can support the corresponding protocol as long as it is version 1.1.1 or higher
And encryption suite. In the apache configuration, the cipher suite ECDH has a matching cipher suite algorithm;


--- original, reproduced, please, thank you
rfc8446Is the standard for TLS1.3 protocol TLS1.3 process Note: +: Extended message for the previous message *: Optional selection {}: Encrypts with a handshake layer stream key []: Encrypts the strea...
Apache+openssl implements https Preface Due to the long principle part of this experiment, a separate document is compiled for record. If there is any deviation, please correct and criticize. Basic th...
Use OpenSSL to build a TLS1.3 Ubuntu server based on the pre -shared key mode Server building Client building Find the latest version of OpenSSL Refer to the link below for configuration https://blog....
Openssl version Openssl 1.1.1 Start supporting the national secret algorithm https://www.openssl.org/news/changelog.html The latest OpenSSL version is OpenSSL-1.1.1N (2022-04-24) Openssl upgrade quest...
First, SSLHandshake agreementSSLHandshakeProtocal) SSLThe role of the handshake protocol is to allow the server and the client to authenticate each other's identity and negotiate a session's encryptio...
We are happy to announce that StreamNative has open sourced "MoP" (MQTT on Pulsar). MoP introduces the MQTT protocol processing plug-in to Pulsar broker. In this way, Apache Pulsar can suppo...
We are happy to announce that StreamNative and China Mobile are open source “AoP”(AMQP on Pulsar). AoP introduces the AMQP protocol processing plug-in to Pulsar broker. In this way, Apache...
Apache supports VUE project origin Apache server modification Vue project modification origin The company's project has experienced the history of N years. The original agents are doing forward agents...
2019 Unicorn Enterprise Heavy Glour Recruitment Python Engineer Standard >>> Certificate application Can be purchased to third-party CA organizations, or apply for Tencent CloudTencent cloud ...
I found a lot of similar articles on the Internet. The article is clear and concise, so it’s so clear. Original address: http://www.zhangdi.name/2008/02/19/apache-ssl-under-windows.html 1. Downl...