Table of contents

openvpn configure: error: openssl check failed

Linux Jun 13, 2020 Viewed 2.1K Comments 0


When configure openvpn with the command below.

./configure --prefix=/opt/openvpn-2.4.9

But the following error occurs.

checking for setcon in -lselinux... no
checking for pam_start in -lpam... no
checking for PKCS11_HELPER... no
checking for OPENSSL... no
checking for SSL_CTX_new... no
configure: error: openssl check failed


We should install openssl.

1. Install from source

Download the source and config.

$ wget
$ tar xf openssl-1.1.1g.tar.gz
$ cd openssl-1.1.1g
$ ./config
$ make
$ make test
$ make install

2. Install with command


sudo apt-get install libssl-dev


sudo yum install openssl-devel
Updated Jun 13, 2020