diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-11-07 18:55:25 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-11-07 18:55:25 +0100 |
commit | 9c167df34a227c6f87a8e138b80c87b12095bd89 (patch) | |
tree | 280893d0e985f3d5dc7950635256cd82f968c0f1 /doc/cha-cert-auth.texi | |
parent | ba1005c5e613297c24191e36c4300a96f91c0082 (diff) | |
download | gnutls-9c167df34a227c6f87a8e138b80c87b12095bd89.tar.gz |
doc update
Diffstat (limited to 'doc/cha-cert-auth.texi')
-rw-r--r-- | doc/cha-cert-auth.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/cha-cert-auth.texi b/doc/cha-cert-auth.texi index e379e69a7f..168b10639a 100644 --- a/doc/cha-cert-auth.texi +++ b/doc/cha-cert-auth.texi @@ -87,6 +87,7 @@ acceptable. The framework is illustrated on @ref{fig:x509}. * X.509 certificate structure:: * Importing an X.509 certificate:: * X.509 distinguished names:: +* X.509 public and private keys:: * Verifying X.509 certificate paths:: * Verifying a certificate in the context of TLS session:: @end menu @@ -240,6 +241,21 @@ of the issuer of the certificate. @showfuncD{gnutls_x509_crt_get_issuer_dn,gnutls_x509_crt_get_issuer_dn_by_oid,gnutls_x509_crt_get_issuer_dn_oid,gnutls_x509_crt_get_issuer} +@node X.509 public and private keys +@subsection Accessing public and private keys + +Each X.509 certificate contains a public key that corresponds to a private key. To +get a unique identifier of the public key the @funcref{gnutls_x509_crt_get_key_id} +function is provided. To export the public key or its parameters you may need +to convert the X.509 structure to a @code{gnutls_pubkey_t}. See +@ref{Abstract public keys} for more information. + +@showfuncdesc{gnutls_x509_crt_get_key_id} + +The private key parameters may be directly accessed by using one of the following functions. + +@showfuncE{gnutls_x509_privkey_get_pk_algorithm2,gnutls_x509_privkey_export_rsa_raw2,gnutls_x509_privkey_export_ecc_raw,gnutls_x509_privkey_export_dsa_raw,gnutls_x509_privkey_get_key_id} + @node Verifying X.509 certificate paths @subsection Verifying @acronym{X.509} certificate paths @cindex verifying certificate paths |