ssl - Node.js client cert from Windows... how can I tell if the cert is being sent? -


i've got client-side cert secured rest endpoint works when hit via curl using known cert in linux-land... say, if console.log(req.connection.getpeercertificate()), see bunch of stuff. cool.

... however, when 1 of teammates tries hit same endpoint windows machine, req.connection.getpeercertificate() empty object, though think they're attaching cert correctly.

what's best way tell if are, indeed, attaching cert correctly? how should go debugging this?

the docs say:

if peer not provide certificate, [getpeercertificate] returns null or empty object.

so know windows client not sending valid certificate because getpeercertificate() returns empty object. check authorizationerror property additional information client certificate errors may have occurred.

debug finding out why client isn't sending certificate. setting requestcert: true in server options? client configured? sending certificate can validated?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -