Home | History | Annotate | Download | only in util

Lines Matching refs:pem

25 // Tests reading an X509 certificate from a PEM encoded string.
27 std::string pem = "-----BEGIN CERTIFICATE-----\n"
41 X509* x509 = CertificateUtil::X509FromPEM(pem);
51 // Tests converting an X509 certificate to a PEM encoded string.
94 std::string pem = CertificateUtil::X509ToPEM(x509);
111 ASSERT_EQ(expected, pem);
114 // Tests reading a private key from a PEM encoded string.
116 std::string pem = "-----BEGIN RSA PRIVATE KEY-----\n"
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing");
145 // Tests converting a private key to a PEM encoded string.
151 std::string pem = CertificateUtil::PKEYToPEM(pkey, "testing");
153 ASSERT_TRUE(pem.size());
155 // Difficult to verify the PEM because the encryption is random, so just make
157 EVP_PKEY* verify = CertificateUtil::PKEYFromPEM(pem, "testing");