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

NAME

6       gnutls_x509_crt_sign2 - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_x509_crt_t crt
17                   a certificate of type gnutls_x509_crt_t
18
19       gnutls_x509_crt_t issuer
20                   is the certificate of the certificate issuer
21
22       gnutls_x509_privkey_t issuer_key
23                   holds the issuer's private key
24
25       gnutls_digest_algorithm_t dig
26                   The message digest to use, GNUTLS_DIG_SHA1 is a safe choice
27
28       unsigned int flags
29                   must be 0
30

DESCRIPTION

32       This  function will sign the certificate with the issuer's private key,
33       and will copy the issuer's information into the certificate.
34
35       This must be the last step in a certificate generation  since  all  the
36       previously set parameters are now signed.
37

RETURNS

39       On  success,  GNUTLS_E_SUCCESS  is returned, otherwise a negative error
40       value.
41

REPORTING BUGS

43       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
44       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
45       http://www.gnu.org/gethelp/
46
48       Copyright © 2008 Free Software Foundation.
49       Copying and distribution of this file, with  or  without  modification,
50       are  permitted  in  any  medium  without royalty provided the copyright
51       notice and this notice are preserved.
52

SEE ALSO

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