[#PEM_write_bio_X509]
= PEM&lowbar;write&lowbar;bio&lowbar;X509
:mrdocs:

Write an X&period;509 certificate to a BIO in PEM form&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PEM&lowbar;write&lowbar;bio&lowbar;X509(
    xref:BIO.adoc[BIO]* bp,
    xref:X509.adoc[X509] const* x);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bp*
| BIO to write to&period;
| *x*
| Certificate to encode&period;
|===


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