> 
> 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

_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help

Reply via email to