1gnutls_x509_crq_sign2(3) gnutls gnutls_x509_crq_sign2(3)
2
3
4
6 gnutls_x509_crq_sign2 - This function will sign a Certificate request
7 with a key
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crq_sign2(gnutls_x509_crq_t crq, gnutls_x509_privkey_t
13 key, gnutls_digest_algorithm_t dig, unsigned int flags);
14
16 gnutls_x509_crq_t crq
17 should contain a gnutls_x509_crq_t structure
18
19 gnutls_x509_privkey_t key
20 holds a private key
21
22 gnutls_digest_algorithm_t dig
23 The message digest to use. GNUTLS_DIG_SHA1 is the safe
24 choice unless you know what you're doing.
25
26 unsigned int flags
27 must be 0
28
30 This function will sign the certificate request with a private key.
31 This must be the same key as the one used in gnutls_x509_crt_set_key()
32 since a certificate request is self signed.
33
34 This must be the last step in a certificate request generation since
35 all the previously set parameters are now signed.
36
37 Returns 0 on success.
38
40 Report bugs to <bug-gnutls@gnu.org>.
41
43 Copyright © 2006 Free Software Foundation.
44 Permission is granted to make and distribute verbatim copies of this
45 manual provided the copyright notice and this permission notice are
46 preserved on all copies.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 1.6.3 gnutls_x509_crq_sign2(3)