[PATCH] added additional properties to getPeerCertificate

91 views
Skip to first unread message

Nathan

unread,
Jun 15, 2010, 10:18:49 AM6/15/10
to nod...@googlegroups.com
All, Ryah,

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.

0001-added-additional-properties-to-getPeerCertificate-n.patch

Ben Noordhuis

unread,
Jun 16, 2010, 5:00:01 AM6/16/10
to nod...@googlegroups.com
'Me too' post here, I'd also like to see this functionality added to
nodejs. I have two nitpicks though:

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?

Reply all
Reply to author
Forward
0 new messages