I am not familiar with the specific scenario, but in general, if you want to configure a proxy for the AESM, at the bottom of the GitHub page
Configure the Proxy for aesmd Service
The aesmd service uses the HTTP protocol to initialize some services.
If a proxy is required for the HTTP protocol, you may need to manually set up the proxy for the aesmd service.
You should manually edit the file /etc/aesmd.conf (refer to the comments in the file) to set the proxy for the aesmd service.
After you configure the proxy, you need to restart the service to enable the proxy.
I followed this documentation for setting up PoET: https://sawtooth.hyperledger.org/docs/core/releases/1.0/sysadmin_guide/configure_sgx.html
When it reached to execute this command "poet enclave --enclave-module sgx measurement" following error occured: SystemError: Unable to create enclave.: SGX ERROR: SGX_ERROR_SERVICE_UNAVAILABLE
What does this error means? How can we overcome this? Thanks.
Please check if aesmd service is running on your machine. `$ sudo service aesmd status` will give more information.
Optionally as Francisco suggested you may check if your machine is behind a firewall or proxy network.
You need to add your corporate proxy to /etc/aesmd.conf:
proxy type = manual
aesm proxy = <proxy url and port here>
Then restart aesmd or reboot.
Also, make sure "intel.com" is not in $no_proxy as both certificates.trustedservices.intel.com and software.intel.com need to be accessed through the proxy.