[gnutls-help] How to check if a gnutls_x509_crt_t contains a private key
Nicolas Mora
nicolas at babelouest.org
Thu Jan 2 05:02:53 CET 2020
>
> I'd like to check if a gnutls_x509_crt_t created via
> gnutls_x509_crt_import contains a private key.
>
I think I found the answer, the gnutls_x509_crt_t contains only a public
key.
If I want to import an unknown DER certificate, I need to try it first
in gnutls_x509_privkey_t format with gnutls_x509_privkey_import.
If the import fails, then try with gnutls_x509_crt_import.
Sorry for the noise
More information about the Gnutls-help
mailing list