1gnutls_certificate_set_x509_key_mem(3g)nutlgsnutls_certificate_set_x509_key_mem(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_key_mem - Used to set keys in a gnutls_cer‐
7       tificate_credentials_t structure
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int      gnutls_certificate_set_x509_key_mem(gnutls_certificate_creden‐
13       tials_t          res, const gnutls_datum_t * cert, const gnutls_datum_t
14       * key, gnutls_x509_crt_fmt_t type);
15

ARGUMENTS

17       gnutls_certificate_credentials_t          res
18                   is an gnutls_certificate_credentials_t structure.
19
20       const gnutls_datum_t * cert
21                   contains a certificate list (path) for the  specified  pri‐
22                   vate key
23
24       const gnutls_datum_t * key
25                   is the private key
26
27       gnutls_x509_crt_fmt_t type
28                   is PEM or DER
29

DESCRIPTION

31       This  function  sets  a certificate/private key pair in the gnutls_cer‐
32       tificate_credentials_t structure. This function may be called more than
33       once (in case multiple keys/certificates exist for the server).
34

CURRENTLY ARE SUPPORTED

36       RSA PKCS-1 encoded private keys, DSA private keys.
37
38       DSA  private  keys  are  encoded the OpenSSL way, which is an ASN.1 DER
39       sequence of 6 INTEGERs - version, p, q, g, pub, priv.
40
41       Note that the keyUsage (2.5.29.15) PKIX extension in X.509 certificates
42       is  supported. This means that certificates intended for signing cannot
43       be used for ciphersuites that require encryption.
44
45       If the certificate and the private key are given in PEM  encoding  then
46       the strings that hold their values must be null terminated.
47

REPORTING BUGS

49       Report bugs to <bug-gnutls@gnu.org>.
50
52       Copyright © 2006 Free Software Foundation.
53       Permission  is  granted  to make and distribute verbatim copies of this
54       manual provided the copyright notice and  this  permission  notice  are
55       preserved on all copies.
56

SEE ALSO

58       The  full  documentation  for gnutls is maintained as a Texinfo manual.
59       If the info and gnutls programs are properly installed  at  your  site,
60       the command
61
62              info gnutls
63
64       should give you access to the complete manual.
65
66
67
68gnutls                               1.6.g3nutls_certificate_set_x509_key_mem(3)
Impressum