Table of contents

openvpn configure: error: openssl check failed

Linux Jun 13, 2020 Viewed 4.1K Comments 0

Issue

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

Solution

We should install openssl.

1. Install from source

Download the source and config.

$ wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
$ tar xf openssl-1.1.1g.tar.gz
$ cd openssl-1.1.1g
$ ./config
$ make
$ make test
$ make install

2. Install with command

Ubuntu/Debian

sudo apt-get install libssl-dev

RHEL/CentOS

sudo yum install openssl-devel
Updated Jun 13, 2020