[#NETSCAPE_SPKI_sign]
= NETSCAPE&lowbar;SPKI&lowbar;sign
:mrdocs:

Sign a Netscape SPKI with a private key and message digest&period;

== Synopsis

Declared in `&lt;openssl&sol;x509&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
NETSCAPE&lowbar;SPKI&lowbar;sign(
    xref:NETSCAPE_SPKI.adoc[NETSCAPE&lowbar;SPKI]* x,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md);
----

== Return Value

Number of bytes in the signature on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| SPKI whose SPKAC payload is signed&semi; signature fields are updated in place&period;
| *pkey*
| Private key used to create the signature&period;
| *md*
| Digest algorithm, or NULL to use the key type&apos;s default&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
