1gnutls_x509_crq_privkey_sign(3)     gnutls     gnutls_x509_crq_privkey_sign(3)
2
3
4

NAME

6       gnutls_x509_crq_privkey_sign - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int         gnutls_x509_crq_privkey_sign(gnutls_x509_crq_t         crq,
12       gnutls_privkey_t  key,  gnutls_digest_algorithm_t  dig,  unsigned   int
13       flags);
14

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_t structure
18
19       gnutls_privkey_t key
20                   holds a private key
21
22       gnutls_digest_algorithm_t dig
23                   The message digest to use, i.e., GNUTLS_DIG_SHA1
24
25       unsigned int flags
26                   must be 0
27

DESCRIPTION

29       This  function  will  sign  the certificate request with a private key.
30       This must be the same key as the one used in  gnutls_x509_crt_set_key()
31       since a certificate request is self signed.
32
33       This  must  be  the last step in a certificate request generation since
34       all the previously set parameters are now signed.
35

RETURNS

37       GNUTLS_E_SUCCESS     on     success,      otherwise      an      error.
38       GNUTLS_E_ASN1_VALUE_NOT_FOUND  is returned if you didn't set all infor‐
39       mation  in  the  certificate   request   (e.g.,   the   version   using
40       gnutls_x509_crq_set_version()).
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_crq_privkey_sign(3)
Impressum