OpenSSL library for SGX application
This project contains modified OpenSSL codes and necessary wrapper functions to be used for SGX-enabled applications.
We first ported an OpenSSL library to SGX for the SGX-Tor project in 2016 and made it public as an open source at Feb 2017.
Then we cleaned up the ported OpenSSL code with the newer version of OpenSSL for other SGX applications.
We also referred to Intel® SGX SSL project after it was released.
This project uses "md_rand.c" and "rand_unix.c" codes from Intel® SGX SSL project for generating random number safely in enclave.
Modified OpenSSL version: OpenSSL-1.0.2l https://github.com/openssl/openssl/releases/tag/OpenSSL_1_0_2l
Tested OS: ubuntu 16.04 LTS, 4.4.0
Tested SGX SDK version: Intel SGX SDK Linux 2.5 https://github.com/01org/linux-sgx/releases/tag/sgx_2.5
- Go to OpenSSL_SGX/ folder.
- Run sgx_openssl_setup.sh to configure OpenSSL.
- Type "make" then you will get "libcrypto.a" and "libssl.a".
- Include the both static library files to your SGX application project.
- Copy and include the wrapper codes in "Wrappers/App" and "Wrappers/Enclave" directory to your own project.
- Implement your Makefile, EDL file, Linker script, Enclave configure file to build an SGX-enabled binary.
For the detailed usage, you can refer to the sample codes
This project contains "Simple SSL/TLS server and client" sample codes.
I hope you can get some hints from the sample applications.
- If you did not build OpenSSL_SGX library, build the library first.
- Go to SampleCode/Simple_TLS_(Client or Server)/.
- Type "make" to build SGX-enabled TLS server and client.
- Start the TLS server at SampleCode/Simple_TLS_Server/app.
- Start the TLS client at SampleCode/Simple_TLS_Client/app.
- SGX-Tor: Tor anonymity network in the SGX environment (NSDI'17).
Paper Link: https://www.usenix.org/system/files/conference/nsdi17/nsdi17-kim-seongmin.pdf. - Intel® SGX SSL.
- SGX-Box: Enabling Visibility on Encrypted Traffic using a Secure Middlebox Module (APNet'17)
Paper Link: http://conferences.sigcomm.org/events/apnet2017/papers/sgxbox-han.pdf.
Juhyeng Han sparkly9399@gmail.com
Seongmin Kim dallas1004@gmail.com