1gnutls_certificate_set_x509_key_file(g3n)utglnsutls_certificate_set_x509_key_file(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_key_file   -   Used   to   set  keys  in  a
7       gnutls_certificate_credentials_t structure
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int     gnutls_certificate_set_x509_key_file(gnutls_certificate_creden‐
13       tials_t   res,   const   char   *   certfile,  const  char  *  keyfile,
14       gnutls_x509_crt_fmt_t type);
15

ARGUMENTS

17       gnutls_certificate_credentials_t res
18                   is a gnutls_certificate_credentials_t structure.
19
20       const char * certfile
21                   is a file that containing the certificate list  (path)  for
22                   the  specified  private  key, in PKCS7 format, or a list of
23                   certificates
24
25       const char * keyfile
26                   is a file that contains the private key
27
28       gnutls_x509_crt_fmt_t type
29                   is PEM or DER
30

DESCRIPTION

32       This function sets a certificate/private key pair  in  the  gnutls_cer‐
33       tificate_credentials_t  structure.   This  function  may be called more
34       than once (in case multiple keys/certificates exist for the server).
35
36       Currently only PKCS-1 encoded RSA and DSA private keys are accepted  by
37       this function.
38

RETURNS

40       GNUTLS_E_SUCCESS on success, or an error code.
41

REPORTING BUGS

43       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
44       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
45       http://www.gnu.org/gethelp/
46
48       Copyright © 2008 Free Software Foundation.
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium  without  royalty  provided  the  copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the info and gnutls programs are properly installed  at  your  site,
56       the command
57
58              info gnutls
59
60       should give you access to the complete manual.
61
62
63
64gnutls                               2.8g.n6utls_certificate_set_x509_key_file(3)
Impressum