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_SHA256 is a safe
27                   choice
28
29       unsigned int flags
30                   must be 0
31

DESCRIPTION

33       This function will sign the certificate with the issuer's private  key,
34       and will copy the issuer's information into the certificate.
35
36       This  must  be  the last step in a certificate generation since all the
37       previously set parameters are now signed.
38
39       A known limitation of this function is, that a newly-signed certificate
40       will  not be fully functional (e.g., for signature verification), until
41       it is exported an re-imported.
42
43       After GnuTLS 3.6.1 the value of  dig may be GNUTLS_DIG_UNKNOWN, and  in
44       that  case,  a  suitable  but  reasonable for the key algorithm will be
45       selected.
46

RETURNS

48       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
49       error value.
50

REPORTING BUGS

52       Report bugs to <bugs@gnutls.org>.
53       Home page: https://www.gnutls.org
54
55
57       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
58       Copying  and  distribution  of this file, with or without modification,
59       are permitted in any medium  without  royalty  provided  the  copyright
60       notice and this notice are preserved.
61

SEE ALSO

63       The  full  documentation  for gnutls is maintained as a Texinfo manual.
64       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
65       visit
66
67       https://www.gnutls.org/manual/
68
69gnutls                               3.6.8            gnutls_x509_crt_sign2(3)
Impressum