to_pem() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE 
ossl_x509_to_pem(VALUE self)
    X509 *x509;
    BIO *out;
    VALUE str;
    GetX509(self, x509);
    out = BIO_new(BIO_s_mem());
    if (!out) ossl_raise(eX509CertError, NULL);

    if (!PEM_write_bio_X509(out, x509)) {
        ossl_raise(eX509CertError, NULL);
    str = ossl_membio2str(out);

    return str;
Register or log in to add new notes.