Steps to install and set the path to OpenSSL 1.1.1 for the sgx-ra-sample
- Attempted to make the sgx-ra-sample in an Ubuntu* Docker Container.
-
The command: g++ -tcd=c++11 -g -O2 -L/opt/sgxsdk/lib64 -L /opt/openssl/1.1.0i/lib -o sp sp.o…, fails with several errors similar to:
/usr/bin/ld: /lib/x86_64-linux-gnu/libssl.so.1.1: undefined reference to 'EVP_aria_256_gcm@OPENSSL_1_1_1'
- Run the following command to get your system's OpenSSL version. It must be at least 1.1.1:
$ openssl version
- If the returned OpenSSL version is less than 1.1.1, download and install OpenSSL 1.1.1:
$ wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
$ tar xf openssl-1.1.1j.tar.gz
$ cd openssl-1.1.1j
$ ./config --prefix=/opt/openssl/1.1.1j --openssldir=/opt/openssl/1.1.1j
$ make
$ sudo make install - Configure and compile the sgx-ra-sample, pointing to the OpenSSL1.1.1 directory:
$ ./bootstrap
$ ./configure --with-openssldir=/opt/openssl/1.1.1j
$ make