Comments (2)
I traced the code,and i found that ,the reason that enc_wolfSSL_CTX_load_verify_buffer returned value is -150 is the XTIME in wolfssl-ra-attester.c like this:
#ifdef WOLFSSL_SGX
time_t XTIME(time_t* tloc) {
//printf("wolfssl-ra-attester.c...XTIME...\n");
time_t x = 1512498557; /* Dec 5, 2017, 10:29 PDT */ Is the x the current time stamp?
if (tloc) *tloc = x;
return x;
}
time_t mktime(struct tm* tm) {
(void) tm;
assert(0);
return (time_t) 0;
}
#endif
from sgx-ra-tls.
Why are you actually using enc_wolfSSL_CTX_load_verify_buffer()? Looking at the wolfSSL source, this function is for loading CA certificates. The certificate that RA-TLS generates is not a CA certificate. I am guessing that enc_wolfSSL_CTX_load_verify_buffer() tries to do some sanity checks on the certificate related to its validity period and this fails.
I'd say calling enc_wolfSSL_CTX_load_verify_buffer() within the scope of what the example is trying to demonstrate is not supported/intended. You may want to look at what exactly enc_wolfSSL_CTX_load_verify_buffer() verifies and where it obtains its time from, if you still want to pursue this route.
from sgx-ra-tls.
Related Issues (20)
- Update wolfSSL to version which already includes wolfSSL's #2036
- Detailed Build Reset Instructions
- Curl Issues when trying to port https-server into Graphene HOT 1
- Why Assertion failed: rc != -1 ? HOT 2
- Why curl_easy_perform= 5 ? HOT 1
- Change API from v2 (deprecated) to whatever is current. HOT 1
- what's the relation between enc_wolfSSL_read and ocall_send? HOT 2
- In sgx enclave,can we verify the certificate signature and verify the certificate chain? HOT 7
- ./build.sh sgxlkl need library ld-musl-x86_64.so.1 at /lib, or compiled failed HOT 1
- Docker build succeeded but running App -s failed HOT 1
- Local attestation support
- [EPID] Verifier interacts with IAS
- Runtime detection of EPID/ECDSA
- Couldn't run SGX-LKL examples HOT 9
- Docker running problems HOT 1
- ERROR: failed to connect to wolfSSL, return value = -188 HOT 1
- ra_tls_options.c.sh depends on python2
- Attestation evidence
- Sample HTTPS Server fails to remain launched when run using SGX-LKL HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgx-ra-tls.