[Net-ssleay-devel] a question to you SSLeay module
sampo at zxidp.org
sampo at zxidp.org
Sun Dec 5 16:40:43 UTC 2010
Daniel Kahn Gillmor <dkg at fifthhorseman.net> said:
> This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
> --------------enigF85019C9B5E9281CF6F45A5E
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: quoted-printable
>
> On 12/02/2010 01:17 PM, sampo at zxidp.org wrote:
> > If you wanted to render the variable into, say, PEM formatted certifica=
> te, you
> >=20
> > need to call appropriate OpenSSL API functions, such as Net::SSLeay::PE=
> M_write_bio_X509().
>
> Hrm. i don't think there is such a function, at least not in
> Net::SSLeay version 1.36 (in debian unstable currently).
>
> however, poking around in the source shows that you can extract a
> PEM-encoded version of the certificate from such a cert object with:
>
> Net::SSLeay::PEM_get_string_X509($cert)
>
> hope that's useful for you!
Thanks. Indeed, it appears I had same need years ago and wrote that function,
which internally calls PEM_write_bio_X509(), see around line 2670 in SSLeay.xs.
Had forgotten all about that one :-)
Cheers,
--Sampo
> --dkg
>
>
> --------------enigF85019C9B5E9281CF6F45A5E
> Content-Type: application/pgp-signature; name="signature.asc"
> Content-Description: OpenPGP digital signature
> Content-Disposition: attachment; filename="signature.asc"
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQIcBAEBCgAGBQJM+ICxAAoJEMzS7ZTSFznpMd0QAIrZ21N0oy9OKhMDpxZf78Zc
> QePbyTYLKOgCYDMCndNrD56V9exr5GdskKZm7uTkYGglD3z0XuWJqHXaoqXAc/fI
> cEX4Ym6JUtYYdLdB+I0VxAtDrB5h3ObUgUo+szOqpHEqoicjAI80ifnSzoe1Mmxz
> fsQxOcDP9WHv3RoJcifEfCi6gWO/qtbeGlptO1eKaiAqM6ODcrl6KrH01IwmIhgY
> BK6K7NpekoMckjnIU8LDyWCJnBO/1Ao0JE7zJOvrIKohtyTLY+uj02FyPTFgYbWS
> gcRpLMvsNzQCcdT64DWoqribBHKdVz9jZsKC/bPXP+12eiVfq0A12PpXc3+vXQYO
> DM4bMuwTQRIUiLoQ+Wfy37ux+kZCCBKuN3e2ys7oqUUaeG15SHy7sM0PLtlr64qd
> 9jTb8Ymf+seIm/yeuwNkCb/f7hrZM0j6JhDe4x1wgubo3HJgDoIGwO2jLmHded66
> MNzM3WvbriWckiRE/sMLk5ltkd2NaizgYSYdPCuZBMlCDveLn0UWn9ZFx1u5mmKE
> GUe+kcTXb9xtnKggZ6afmn/xzCzWGBsQPAmwzPih+GK7D+RCixH1Nvxg2jTtowfQ
> kwAsAwLl/GuN7KNodY4+v3KoPXHLEeWMM+TMU02quBjY9gAsGGJnVCyA2SJyIh3g
> 8V+yPuO2KmCpSU8CyHxW
> =Sa5m
> -----END PGP SIGNATURE-----
>
> --------------enigF85019C9B5E9281CF6F45A5E--
>
More information about the Net-ssleay-devel
mailing list