[#OCSP_cert_id_new]
= OCSP&lowbar;cert&lowbar;id&lowbar;new
:mrdocs:

Build an OCSP CertID from issuer name&sol;key material and a serial number&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OCSP_CERTID.adoc[OCSP&lowbar;CERTID]*
OCSP&lowbar;cert&lowbar;id&lowbar;new(
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* dgst,
    xref:X509_NAME.adoc[X509&lowbar;NAME] const* issuerName,
    xref:ASN1_BIT_STRING.adoc[ASN1&lowbar;BIT&lowbar;STRING] const* issuerKey,
    xref:ASN1_INTEGER.adoc[ASN1&lowbar;INTEGER] const* serialNumber);
----

== Return Value

New OCSP&lowbar;CERTID, or NULL on error&semi; free with OCSP&lowbar;CERTID&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dgst*
| Digest used for name and key hashes, or NULL for SHA&hyphen;1&period;
| *issuerName*
| Issuer distinguished name whose hash becomes issuerNameHash&period;
| *issuerKey*
| Issuer public key BIT STRING whose hash becomes issuerKeyHash&period;
| *serialNumber*
| Certificate serial number copied into the CertID&period;
|===


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