cd /home/openemm/opt
wget https://dlcdn.apache.org/tomcat/tomcat-connectors/native/1.2.39/source/tomcat-native-1.2.39-src.tar.gz
tar -C /home/openemm/opt -xvzf tomcat-native-1.2.39-src.tar.gz
cd /home/openemm/opt/tomcat-native-1.2.39-src/native/
./configure --with-apr=/usr/bin/apr-1-config --with-ssl=yes --prefix=/home/openemm/opt/tomcat-native-1.2.39 --with-java-home=/usr/lib/jvm/java
make && make install
ln -s /home/openemm/opt/tomcat-native-1.2.39 /home/openemm/opt/tomcat-native
To use OpenEMM with secure HTTPS connections, for Tomcat you should use the NIO Connector, because according to the Apache Foundation the APR/Native HTTP Connector is deprecated and will be removed in Tomcat 10.1 and later.