[#NETSCAPE_SPKI_sign] = NETSCAPE_SPKI_sign :mrdocs: Sign a Netscape SPKI with a private key and message digest. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int NETSCAPE_SPKI_sign( xref:NETSCAPE_SPKI.adoc[NETSCAPE_SPKI]* x, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:EVP_MD.adoc[EVP_MD] const* md); ---- == Return Value Number of bytes in the signature on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *x* | SPKI whose SPKAC payload is signed; signature fields are updated in place. | *pkey* | Private key used to create the signature. | *md* | Digest algorithm, or NULL to use the key type's default. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#