1gnutls_certificate_set_x509_sigmnpultel_sp_kgccnesur1tt2li_sffiiclaet(e3_)set_x509_simple_pkcs12_file(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_simple_pkcs12_file - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_certificate_credentials_t res
17                   is a gnutls_certificate_credentials_t structure.
18
19       const char * pkcs12file
20                   filename of file containing 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

REPORTING BUGS

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

SEE ALSO

68       The full documentation for gnutls is maintained as  a  Texinfo  manual.
69       If  the  info  and gnutls programs are properly installed at your site,
70       the command
71
72              info gnutls
73
74       should give you access to the complete manual.
75
76
77
78gnutls                       gnutls2_.c1e2r.t6i.f1icate_set_x509_simple_pkcs12_file(3)
Impressum