1gnutls_x509_crt_sign2(3)            gnutls            gnutls_x509_crt_sign2(3)
2
3
4

NAME

6       gnutls_x509_crt_sign2  -  This  function will sign a certificate with a
7       key
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int  gnutls_x509_crt_sign2(gnutls_x509_crt_t   crt,   gnutls_x509_crt_t
13       issuer,   gnutls_x509_privkey_t  issuer_key,  gnutls_digest_algorithm_t
14       dig, unsigned int flags);
15

ARGUMENTS

17       gnutls_x509_crt_t crt
18                   should contain a gnutls_x509_crt_t structure
19
20       gnutls_x509_crt_t issuer
21                   is the certificate of the certificate issuer
22
23       gnutls_x509_privkey_t issuer_key
24                   holds the issuer's private key
25
26       gnutls_digest_algorithm_t dig
27                   The message digest to  use.  GNUTLS_DIG_SHA1  is  the  safe
28                   choice unless you know what you're doing.
29
30       unsigned int flags
31                   must be 0
32

DESCRIPTION

34       This  function will sign the certificate with the issuer's private key,
35       and will copy the issuer's information into the certificate.
36
37       This must be the last step in a certificate generation  since  all  the
38       previously set parameters are now signed.
39
40       Returns 0 on success.
41

REPORTING BUGS

43       Report bugs to <bug-gnutls@gnu.org>.
44
46       Copyright © 2006 Free Software Foundation.
47       Permission  is  granted  to make and distribute verbatim copies of this
48       manual provided the copyright notice and  this  permission  notice  are
49       preserved on all copies.
50

SEE ALSO

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