Angie Chinchilla 532875d019 Initial README.md for project | 8 anni fa | |
---|---|---|
.gitignore | 8 anni fa | |
README.md | 8 anni fa |
Intel(R) Software Guard Extensions (Intel(R) SGX) is an Intel technology for application developers seeking to protect select code and data from disclosure or modification.
The Linux SGX software stack is comprised of the SGX driver, the SGX SDK, and the SGX Platform Software. The SGX SDK and SGX PSW are hosted in the linux-sgx project.
The linux-sgx-driver project hosts the out-of-tree driver for the Linux SGX software stack, which will be used until the driver upstreaming process is complete.
See License.txt for details.
Follow the instructions in the linux-sgx-driver project to build and install the SGX driver.
###Prerequisites:
$ sudo apt-get install build-essential ocaml automake autoconf libtool
$ sudo apt-get install libcurl4-openssl-dev protobuf-compiler protobuf-c-compiler libprotobuf-dev libprotobuf-c0-dev
export http_proxy=http://test-proxy:test-port
)
$ ./download_prebuilt.sh
###Build the Intel(R) SGX SDK and Intel(R) SGX PSW The following steps describe how to build the Intel SGX SDK and PSW. You can build the project according to your requirement.
$ make
You can find the tools and libraries generated in the build/linux
directory.
Note: You can also go to the sdk folder and use the make
command to build the Intel SGX SDK component only. However, the building of PSW component is dependent on the building result of Intel SGX SDK.$ make DEBUG=1
make
command, enter the following command:
$ make clean
###Build Intel(R) SGX SDK Installer To build Intel(R) SGX SDK installer, enter the following command:
`$ make sdk_install_pkg`
You can find the generated Intel SGX SDK installer sgx_linux_x64_sdk_${version}.bin
located under linux/installer/bin/
, where ${version}
refers to the version number.
###Build Intel(R) SGX PSW Installer To build Intel(R) SGX PSW installer, enter the following command:
`$ make psw_install_pkg`
You can find the generated Intel SGX PSW installer sgx_linux_x64_psw_${version}.bin
located under linux/installer/bin/
, where ${version}
refers to the version number.
###Prerequisites
$ sudo apt-get install build-essential
###Install Intel(R) SGX SDK To install Intel(R) SGX SDK, execute the installer with root privilege:
`$ sudo ./sgx_linux_x64_sdk_${version}.bin `
###Test Intel(R) SGX SDK Package with the Sample Codes
$ cp -r /opt/intel/sgxsdk/SampleCode ~
$ cd SampleCode/LocalAttestation
$ make
$ ./app
Use similar commands for other sample codes.###Compile and Run the Sample Codes in the Hardware Mode If you use an SGX hardware enabled machine, you need to run the sample codes in the hardware mode. Ensure that you install SGX driver and Intel(R) SGX PSW installer on the machine. See the topic, Install Intel(R) SGX PSW, on how to install the PSW package.
$ cp -r /opt/intel/sgxsdk/SampleCode ~
$ cd SampleCode/LocalAttestation
$ make SGX_MODE=HW SGX_DEBUG=1
$ ./app
Use similar commands for other sample codes.###Prerequisites
$ sudo apt-get install libcurl4-openssl-dev libprotobuf-dev libprotobuf-c0-dev
###Install Intel(R) SGX PSW To install Intel(R) SGX PSW, execute the installer with root privilege:
`$ sudo ./sgx_linux_x64_psw_${version}.bin`
###Start or Stop aesmd Service
The Intel(R) SGX PSW installer installs an aesmd service in your machine which is running in a special linux account aesmd.
To stop the service: $ sudo service aesmd stop
To start the service: $ sudo service aesmd start
To restart the service: $ sudo service aesmd restart
###Configure the Proxy for aesmd Service
The aesmd service uses HTTP protocol to initialize some services.
If proxy is required for HTTP protocol, you may need manually setup the proxy for aesmd service.
You should manually edit file /etc/aesmd.conf
(refer the comment in the file) to set the proxy for aesmd service.
After you configure the proxy, you need to restart the service to enable the proxy.