passport-client-cert | js strategy for PKI client certificate | Authentication library
kandi X-RAY | passport-client-cert Summary
kandi X-RAY | passport-client-cert Summary
Passport.js strategy for PKI client certificate authentication
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Authenticate a certificate .
- Client authentication strategy .
- Lookup a user from a string
passport-client-cert Key Features
passport-client-cert Examples and Code Snippets
Community Discussions
Trending Discussions on passport-client-cert
QUESTION
I have a node/express server running https on localhost:9002, and I want to use client certificate for a react app, running on localhost:8080 (webpack dev server). The react app is using ajax request with superagent to the https server, and I have a passport middleware to check certificate automatically.
EnvironmentWindows 10, Chrome Version 71.0.3578.98
SetupUsing openssl, I created a root CA. Then I generated my server certificate, and a client certificate. This is the script used (I run it with git bash, so it's UNIX style but I'm on windows):
...ANSWER
Answered 2019-Jan-11 at 13:09Okay, I did many changes so that the chain of certificate could be clearer, but the reason I was still having 401 after all my efforts was because of this configuration in my express server:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-client-cert
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page