Sign a Netscape SPKI with a private key and message digest.
Declared in <openssl/x509.h>
int
NETSCAPE_SPKI_sign(
NETSCAPE_SPKI* x,
EVP_PKEY* pkey,
EVP_MD const* md);
Number of bytes in the signature on success, or 0 on failure.
| 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. |