<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configuring Sawtooth to Use SGX in Intel® Software Guard Extensions (Intel® SGX)</title>
    <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Configuring-Sawtooth-to-Use-SGX/m-p/1165099#M3026</link>
    <description>&lt;P style="margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;I follow the steps from here:&amp;nbsp;&lt;A class="external-link" href="https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/configure_sgx.html" rel="nofollow" style="color: rgb(59, 115, 175); text-decoration-line: underline; cursor: pointer;" title="Follow link"&gt;https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/configure_sgx.html&lt;/A&gt;&amp;nbsp;and in this step:&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;&lt;B&gt;Create and submit a proposal:&lt;/B&gt;&lt;BR /&gt;
	$ sawtooth config proposal create -k /etc/sawtooth/keys/validator.priv \ sawtooth.consensus.algorithm=poet \ sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/ias_rk_pub.pem)" \ sawtooth.poet.valid_enclave_measurements=$(poet enclave --enclave-module sgx measurement) \ sawtooth.poet.valid_enclave_basenames=$(poet enclave --enclave-module sgx basename) \ sawtooth.poet.enclave_module_name=poet_enclave_sgx.poet_enclave \ -o config.batch&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I get the following:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sawtooth@dsg2:/tmp$ sawtooth config proposal create -k /etc/sawtooth/keys/validator.priv \
&amp;gt; sawtooth.consensus.algorithm=poet \
&amp;gt; sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/ias_rk_pub.pem)" \
&amp;gt; sawtooth.poet.valid_enclave_measurements=$(poet enclave --enclave-module sgx measurement) \
&amp;gt; sawtooth.poet.valid_enclave_basenames=$(poet enclave --enclave-module sgx basename) \
&amp;gt; sawtooth.poet.enclave_module_name=poet_enclave_sgx.poet_enclave \
&amp;gt; -o config.batch
[17:50:12 WARNING poet_enclave] SGX PoET enclave initialized.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 252, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 303, in ssl_wrap_socket
context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 376, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 589, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 131, in main_wrapper
main()
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 123, in main
do_enclave(args)
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 52, in do_enclave
data_dir=config.get_data_dir()) as poet_enclave_module:
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__
self._poet_enclave_module.initialize(config_dir, data_dir)
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 532, in initialize
update_sig_rl()
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 462, in update_sig_rl
sig_rl = _ias.get_signature_revocation_lists(_epid_group)
File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists
result = requests.get(url, cert=self._cert, timeout=self._timeout)
File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)
[17:50:13 WARNING poet_enclave] SGX PoET enclave initialized.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 252, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 303, in ssl_wrap_socket
context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 376, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 589, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 131, in main_wrapper
main()
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 123, in main
do_enclave(args)
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 52, in do_enclave
data_dir=config.get_data_dir()) as poet_enclave_module:
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__
self._poet_enclave_module.initialize(config_dir, data_dir)
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 532, in initialize
update_sig_rl()
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 462, in update_sig_rl
sig_rl = _ias.get_signature_revocation_lists(_epid_group)
File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists
result = requests.get(url, cert=self._cert, timeout=self._timeout)
File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)
sawtooth@dsg2:/tmp$ 
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;My certificate was made by this tutorial:&amp;nbsp;&lt;A class="external-link" href="https://software.intel.com/en-us/articles/how-to-create-self-signed-certificates-for-use-with-intel-sgx-remote-attestation-using" rel="nofollow" style="color: rgb(59, 115, 175); cursor: pointer;" title="Follow link"&gt;https://software.intel.com/en-us/articles/how-to-create-self-signed-certificates-for-use-with-intel-sgx-remote-attestation-using&lt;/A&gt;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;and i got for result these files:&amp;nbsp;client.cnf, client.crt, client.key, client.pfx, client.req&amp;nbsp;&lt;BR /&gt;
	So i renamed client.key to&amp;nbsp;sgx-certificate.pem and then i used it as shown in the tutorial for configuring sawtooth with sgx&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;I have ubuntu 16.04 with all the updates in a physical enviroment.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 20:11:57 GMT</pubDate>
    <dc:creator>George_M_1</dc:creator>
    <dc:date>2017-11-29T20:11:57Z</dc:date>
    <item>
      <title>Configuring Sawtooth to Use SGX</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Configuring-Sawtooth-to-Use-SGX/m-p/1165099#M3026</link>
      <description>&lt;P style="margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;I follow the steps from here:&amp;nbsp;&lt;A class="external-link" href="https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/configure_sgx.html" rel="nofollow" style="color: rgb(59, 115, 175); text-decoration-line: underline; cursor: pointer;" title="Follow link"&gt;https://sawtooth.hyperledger.org/docs/core/releases/latest/sysadmin_guide/configure_sgx.html&lt;/A&gt;&amp;nbsp;and in this step:&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;&lt;B&gt;Create and submit a proposal:&lt;/B&gt;&lt;BR /&gt;
	$ sawtooth config proposal create -k /etc/sawtooth/keys/validator.priv \ sawtooth.consensus.algorithm=poet \ sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/ias_rk_pub.pem)" \ sawtooth.poet.valid_enclave_measurements=$(poet enclave --enclave-module sgx measurement) \ sawtooth.poet.valid_enclave_basenames=$(poet enclave --enclave-module sgx basename) \ sawtooth.poet.enclave_module_name=poet_enclave_sgx.poet_enclave \ -o config.batch&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	I get the following:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sawtooth@dsg2:/tmp$ sawtooth config proposal create -k /etc/sawtooth/keys/validator.priv \
&amp;gt; sawtooth.consensus.algorithm=poet \
&amp;gt; sawtooth.poet.report_public_key_pem="$(cat /etc/sawtooth/ias_rk_pub.pem)" \
&amp;gt; sawtooth.poet.valid_enclave_measurements=$(poet enclave --enclave-module sgx measurement) \
&amp;gt; sawtooth.poet.valid_enclave_basenames=$(poet enclave --enclave-module sgx basename) \
&amp;gt; sawtooth.poet.enclave_module_name=poet_enclave_sgx.poet_enclave \
&amp;gt; -o config.batch
[17:50:12 WARNING poet_enclave] SGX PoET enclave initialized.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 252, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 303, in ssl_wrap_socket
context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 376, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 589, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 131, in main_wrapper
main()
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 123, in main
do_enclave(args)
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 52, in do_enclave
data_dir=config.get_data_dir()) as poet_enclave_module:
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__
self._poet_enclave_module.initialize(config_dir, data_dir)
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 532, in initialize
update_sig_rl()
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 462, in update_sig_rl
sig_rl = _ias.get_signature_revocation_lists(_epid_group)
File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists
result = requests.get(url, cert=self._cert, timeout=self._timeout)
File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)
[17:50:13 WARNING poet_enclave] SGX PoET enclave initialized.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 560, in urlopen
body=body, headers=headers)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 787, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 252, in connect
ssl_version=resolved_ssl_version)
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 303, in ssl_wrap_socket
context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 376, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 589, in urlopen
raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 131, in main_wrapper
main()
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/main.py", line 123, in main
do_enclave(args)
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/enclave.py", line 52, in do_enclave
data_dir=config.get_data_dir()) as poet_enclave_module:
File "/usr/lib/python3/dist-packages/sawtooth_poet_cli/poet_enclave_module_wrapper.py", line 58, in __init__
self._poet_enclave_module.initialize(config_dir, data_dir)
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 532, in initialize
update_sig_rl()
File "/usr/lib/python3/dist-packages/sawtooth_poet_sgx/poet_enclave_sgx/poet_enclave.py", line 462, in update_sig_rl
sig_rl = _ias.get_signature_revocation_lists(_epid_group)
File "/usr/lib/python3/dist-packages/sawtooth_ias_client/ias_client.py", line 51, in get_signature_revocation_lists
result = requests.get(url, cert=self._cert, timeout=self._timeout)
File "/usr/lib/python3/dist-packages/requests/api.py", line 67, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 447, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL] PEM lib (_ssl.c:2825)
sawtooth@dsg2:/tmp$ 
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;My certificate was made by this tutorial:&amp;nbsp;&lt;A class="external-link" href="https://software.intel.com/en-us/articles/how-to-create-self-signed-certificates-for-use-with-intel-sgx-remote-attestation-using" rel="nofollow" style="color: rgb(59, 115, 175); cursor: pointer;" title="Follow link"&gt;https://software.intel.com/en-us/articles/how-to-create-self-signed-certificates-for-use-with-intel-sgx-remote-attestation-using&lt;/A&gt;&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;and i got for result these files:&amp;nbsp;client.cnf, client.crt, client.key, client.pfx, client.req&amp;nbsp;&lt;BR /&gt;
	So i renamed client.key to&amp;nbsp;sgx-certificate.pem and then i used it as shown in the tutorial for configuring sawtooth with sgx&lt;/P&gt;

&lt;P style="margin-top: 10px; margin-bottom: 0px; color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px;"&gt;I have ubuntu 16.04 with all the updates in a physical enviroment.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Configuring-Sawtooth-to-Use-SGX/m-p/1165099#M3026</guid>
      <dc:creator>George_M_1</dc:creator>
      <dc:date>2017-11-29T20:11:57Z</dc:date>
    </item>
    <item>
      <title>You will need to do something</title>
      <link>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Configuring-Sawtooth-to-Use-SGX/m-p/1165100#M3027</link>
      <description>You will need to do something like the following to generate a PEM file.

$ cat cert.crt cert.key &amp;gt; cert.pem

or 

$ openssl pkcs12 -in cert.pfx -out cert.pem -nodes

Hope this works.</description>
      <pubDate>Tue, 01 May 2018 17:19:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Software-Guard-Extensions/Configuring-Sawtooth-to-Use-SGX/m-p/1165100#M3027</guid>
      <dc:creator>Nishida__Yoshi</dc:creator>
      <dc:date>2018-05-01T17:19:20Z</dc:date>
    </item>
  </channel>
</rss>

