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 an 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

RETURN VALUE

54       Returns 0 on success, or an error code.
55

REPORTING BUGS

57       Report bugs to <bug-gnutls@gnu.org>.
58
60       Copyright © 2006 Free Software Foundation.
61       Permission is granted to make and distribute verbatim  copies  of  this
62       manual  provided  the  copyright  notice and this permission notice are
63       preserved on all copies.
64

SEE ALSO

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