how to generate a ra-tls certificate by a provided CA using ra_tls_attest.so? #1648
-
Sorry if this question doesn't make sense, But I am trying to have a client providing a certificate to authenticate himself to a https server that is running inside an enclave. So I guess my question is, how can generate this server certificate (containing the sgx quote) signed by the CA? I have read this in the docs: So I guess I will not be able to achieve what I am trying to do? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Currently, no such scenario is supported. We did think about this, and we admit that this can be a useful feature. But it's not in our near-future plans. In the meantime, maybe you want to look at Edgeless Marblerun? It integrates with Gramine and it provides a classic PKI infrastructure with normal certificates, at the cost of a special "Coordinator" master node that hides the complexity of SGX Quotes. You can find more technical info here: |
Beta Was this translation helpful? Give feedback.
-
BTW you can still use RA-TLS to establish that you are indeed running in an enclave and then using secret provisioning, provision the CA signed cert for future use. That is what Edgeless marblerun does anyway. |
Beta Was this translation helpful? Give feedback.
Yes, exactly.
P.S. Regarding InsecureSkipVerify -- yes, you have to specify it. Think of it this way: RA-TLS uses the X.509 certificate format only as a convenience wrapper around the SGX quote. By itself, this X.509 certificate is basically useless; the only benefit of using classic certs is so that we can easily re-use SSL/TLS libraries like OpenSSL, mbedTLS, WolfSSL. But the actual verification of trustwo…