Could this get added to git please, a few people I know need it :)
[PATCH] added additional properties to getPeerCertificate, now includes
subjectAltName, Exponent and Modulus (FOAF+SSL friendly)
As above, simply exposes the value of the x509v3 extension
subjectAltName together with the modulus and exponent of the client
certificate (rsa public key).
Attached, and available for download here:
http://data.fm/test/0001-added-additional-properties-to-getPeerCertificate-n.patch
Best,
Nathan
on irc as webr3 if any problems.
1. A comment should be added that OID 2.5.29.17 is Subject AltName
2. The memset() / BIO_read() combos should be replaced with calls to
BIO_gets() - handling of the nul byte is now more implicit than it
needs to be (it took me a few seconds to figure it out). BIO_gets()
takes care of it automatically and the memory BIO supports it so why
not use it?
Sounds reasonable?