This is is a followup to another thread that I have:
Enabling 2-way (client-authenticated) SSL in node.js?
So, now that I have the client-authentication/2-way SSL working, we want this app/port configured so that it functions both when a client cert is presented, and, optionally, when a client cert is not presented. This is similar to would be similar to setting "sslVerifyClient optional" in an Apache httpd.conf/ssl.conf ( https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslverifyclient ).
I tried adding rejectUnauthorized: true
explicitly to the options
but that didn't seem to have any effect.
Is there a way to do this (set the server port to accept either client cert or no client cert)?
Thanks, Jim
Sorry, again :(...
Re-reading the rejectUnauthorized documentation, I realized that maybe setting it to 'false' instead of 'true' might do what I wanted, and I just tested, and that does work.
Jim
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.