1gnutls_certificate_set_x509_simgpnluet_lpskg_cncsue1tr2lt_simfeimc(a3t)e_set_x509_simple_pkcs12_mem(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_simple_pkcs12_mem - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int       gnutls_certificate_set_x509_simple_pkcs12_mem(gnutls_certifi‐
12       cate_credentials_t    res,    const    gnutls_datum_t    *     p12blob,
13       gnutls_x509_crt_fmt_t type, const char * password);
14

ARGUMENTS

16       gnutls_certificate_credentials_t res
17                   is a gnutls_certificate_credentials_t structure.
18
19       const gnutls_datum_t * p12blob
20                   the PKCS12 blob.
21
22       gnutls_x509_crt_fmt_t type
23                   is PEM or DER of the pkcs12file.
24
25       const char * password
26                   optional  password  used  to  decrypt PKCS12 file, bags and
27                   keys.
28

DESCRIPTION

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

MAC

36       ed  PKCS12  files  are supported.  Encrypted PKCS12 bags are supported.
37       Encrypted PKCS8 private keys are  supported.   However,  only  password
38       based  security,  and  the  same  password for all operations, are sup‐
39       ported.
40
41       The private keys may be RSA PKCS1 or DSA private keys  encoded  in  the
42       OpenSSL way.
43
44       PKCS12  file may contain many keys and/or certificates, and there is no
45       way to identify which key/certificate pair you want.  You  should  make
46       sure  the  PKCS12 file only contain one key/certificate pair and/or one
47       CRL.
48
49       It is believed that the limitations of this function is acceptable  for
50       most  usage,  and  that any more flexibility would introduce complexity
51       that would make it harder to use this functionality at all.
52

RETURNS

54       GNUTLS_E_SUCCESS on success, or an error code.
55

SINCE

57       2.8.0
58

REPORTING BUGS

60       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
61       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
62       http://www.gnu.org/gethelp/
63
65       Copyright © 2008 Free Software Foundation.
66       Copying and distribution of this file, with  or  without  modification,
67       are  permitted  in  any  medium  without royalty provided the copyright
68       notice and this notice are preserved.
69

SEE ALSO

71       The full documentation for gnutls is maintained as  a  Texinfo  manual.
72       If  the  info  and gnutls programs are properly installed at your site,
73       the command
74
75              info gnutls
76
77       should give you access to the complete manual.
78
79
80
81gnutls                        gnutl2s._1c2e.r6t.i1ficate_set_x509_simple_pkcs12_mem(3)
Impressum