Replies: 1 comment 2 replies
-
According to this SO answer, Gramine's RA-TLS must generate the Gramine's RA-TLS uses mbedTLS to generate the self-signed X.509 certificate. The "self-signedness" is achieved by specifying the issuer that is the same as the subject: gramine/tools/sgx/ra-tls/ra_tls_attest.c Lines 82 to 84 in d8d4344 IIUC, this logic forces mbedTLS to mark the certificate as "trusted certificate" and thus start the cert with In other words, this is actually how it should be. This is not a bug, this is a feature. Regarding your particular problem: a quick google search didn't give an answer on how to "load a self-signed certificate into Hashicorp Vault". What is the exact issue that Vault reports? Maybe you just need to add a parameter to the API that you use when loading the certificate; there must be something like |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
Just a minor thing. I have been struggling with Vault in letting it loading certs generated by
gramine-ratls
. At the end I discovered that it didn't like the enhanced cert format (i.e., "BEGIN TRUSTED CERTIFICATE"). I tried with DER but it didn't help. At the end, I discovered that by just changing the header (using the typical "BEGIN CERTIFICATE") Vault was able to load the certificate and the ratls-mbedtls client was also able to verify the quote.Maybe you can enable an option to generate certs by keeping the standard header.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions