You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2020/05/20 05:59:28 UTC

[GitHub] [incubator-teaclave] czzmmc opened a new issue #305: Got error when invoking echo function by python!

czzmmc opened a new issue #305:
URL: https://github.com/apache/incubator-teaclave/issues/305


   Hi, I use simulation mode and I successfully run the 7 services. When I executed python code builtin_echo.py, I got a openssl error message like below.
   
   Traceback (most recent call last):
     File "builtin_echo.py", line 199, in <module>
       main()
     File "builtin_echo.py", line 191, in main
       rt = example.echo(message)
     File "builtin_echo.py", line 158, in echo
       verify_report(AS_ROOT_CA_CERT_PATH, ENCLAVE_INFO_PATH, cert, "authentication")
     File "incubator-teaclave/sdk/python/teaclave.py", line 41, in verify_report
       signing_cert = load_certificate(FILETYPE_ASN1, signing_cert)
     File ".local/lib/python3.6/site-packages/OpenSSL/crypto.py", line 1794, in load_certificate
       _raise_current_error()
     File ".local/lib/python3.6/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
       raise exception_type(errors)
   OpenSSL.crypto.Error: [('asn1 encoding routines', 'ASN1_get_object', 'header too long')]
   
   I know I am using demo certs. Do I need to generate those files by myself? Is it related to my openssl lib version or something like that? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on issue #305: Got error when invoking echo function by python!

Posted by GitBox <gi...@apache.org>.
mssun commented on issue #305:
URL: https://github.com/apache/incubator-teaclave/issues/305#issuecomment-631257659


   If you are using simulation mode, there is no attestation. Please set the env var `SGX_MODE` before starting the example by `export SGX_MODE=SW`.
   
   See: https://github.com/apache/incubator-teaclave/blob/master/sdk/python/teaclave.py#L202
   
   I'll update the doc later.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun closed issue #305: Got error when invoking echo function by python!

Posted by GitBox <gi...@apache.org>.
mssun closed issue #305:
URL: https://github.com/apache/incubator-teaclave/issues/305


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org