[#OCSP_cert_to_id]
= OCSP&lowbar;cert&lowbar;to&lowbar;id
:mrdocs:

Build an OCSP CertID from a subject certificate and its issuer&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;to&lowbar;id(
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* dgst,
    xref:X509.adoc[X509] const* subject,
    xref:X509.adoc[X509] const* issuer);
----

== 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;
| *subject*
| Certificate whose serial and issuer hashes identify the CertID&period;
| *issuer*
| Issuer certificate providing the issuer name and public key&period;
|===


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