Tomcat uses open source SSL certificate to enable HTTPS under centos
Project requirements use HTTPS secure access:
existing environment
centos 7,tomcat
Consulted a lot of information, the program
Open source certificate Let's Encrypt ( application under linux, application under windows )
To apply for a certificate, you can see my other reprinted blog
certificate, which is to configure the
tomcat configuration pem certificate, which requires arp support, all installed in centos 7 first
//Configure gcc dependencies yum install gcc //install openssl wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz tar -zxvf openssl-1.1.0f.tar.gz cd openssl-1.1.0f ./config --prefix=/usr/local/openssl make && make install //install apr cd wget http://mirror.bit.edu.cn/apache/apr/apr-1.6.2.tar.gz tar -zxvf apr-1.6.2.tar.gz cd apr-1.6.2 ./configure --prefix=/usr/local/apr make && make install //install apr-util cd wget http://mirror.bit.edu.cn/apache/apr/apr-util-1.6.0.tar.gz tar -zxvf apr-util-1.6.0.tar.gz cd apr-util-1.6.0 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make && make install //Install tomcat-native cd wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-connectors/native/1.2.12/source/tomcat-native-1.2.12-src.tar.gz tar -zxvf tomcat-native-1.2.12-src.tar.gz cd tomcat-native-1.2.12-src/native ./configure --with-apr=/usr/local/apr --with-ssl=/usr/local/openssl make && make install // configure environment variables vi /etc/profile // add at the end export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib source /etc/profile
is to configure tomcat