1gnutls_certificate_set_x509_key_file(g3n)utglnsutls_certificate_set_x509_key_file(3)
2
3
4
6 gnutls_certificate_set_x509_key_file - Used to set keys in a
7 gnutls_certificate_credentials_t structure
8
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
17 gnutls_certificate_credentials_t res
18 is an 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
32 This function sets a certificate/private key pair in the gnutls_cer‐
33 tificate_credentials_t structure. This function may be called more than
34 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
40 Report bugs to <bug-gnutls@gnu.org>.
41
43 Copyright © 2006 Free Software Foundation.
44 Permission is granted to make and distribute verbatim copies of this
45 manual provided the copyright notice and this permission notice are
46 preserved on all copies.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 1.6g.n3utls_certificate_set_x509_key_file(3)