Blame doc/manpages/gnutls_x509_crt_sign2.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_x509_crt_sign2" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_x509_crt_sign2 \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/x509.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_x509_crt_sign2(gnutls_x509_crt_t " crt ", gnutls_x509_crt_t " issuer ", gnutls_x509_privkey_t " issuer_key ", gnutls_digest_algorithm_t " dig ", unsigned int " flags ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_x509_crt_t crt" 12
Packit 549fdc
a certificate of type \fBgnutls_x509_crt_t\fP
Packit 549fdc
.IP "gnutls_x509_crt_t issuer" 12
Packit 549fdc
is the certificate of the certificate issuer
Packit 549fdc
.IP "gnutls_x509_privkey_t issuer_key" 12
Packit 549fdc
holds the issuer's private key
Packit 549fdc
.IP "gnutls_digest_algorithm_t dig" 12
Packit 549fdc
The message digest to use, \fBGNUTLS_DIG_SHA256\fP is a safe choice
Packit 549fdc
.IP "unsigned int flags" 12
Packit 549fdc
must be 0
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will sign the certificate with the issuer's private key, and
Packit 549fdc
will copy the issuer's information into the certificate.
Packit 549fdc
Packit 549fdc
This must be the last step in a certificate generation since all
Packit 549fdc
the previously set parameters are now signed.
Packit 549fdc
Packit 549fdc
A known limitation of this function is, that a newly\-signed certificate will not
Packit 549fdc
be fully functional (e.g., for signature verification), until it
Packit 549fdc
is exported an re\-imported.
Packit 549fdc
Packit 549fdc
After GnuTLS 3.6.1 the value of  \fIdig\fP may be \fBGNUTLS_DIG_UNKNOWN\fP,
Packit 549fdc
and in that case, a suitable but reasonable for the key algorithm will be selected.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
Packit 549fdc
negative error value.
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP