nategood / node-auth Goto Github PK
View Code? Open in Web Editor NEWDemonstrate Client Side SSL Certificate Authentication in Node.js and Express.js
Demonstrate Client Side SSL Certificate Authentication in Node.js and Express.js
The client.sh
bash/curl client seems to be working fine with the server, however the node client is not authenticating. Have tried multiple configurations and am starting to suspect there may be an underlying issue in node.
Thanks for making this. Do you think you could take a look at this?
$ node client.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: CERT_HAS_EXPIRED
at SecurePair.<anonymous> (tls.js:1356:32)
at SecurePair.EventEmitter.emit (events.js:92:17)
at SecurePair.maybeInitFinished (tls.js:968:10)
at CleartextStream.read [as _read] (tls.js:462:15)
at CleartextStream.Readable.read (_stream_readable.js:320:10)
at EncryptedStream.write [as _write] (tls.js:366:25)
at doWrite (_stream_writable.js:221:10)
at writeOrBuffer (_stream_writable.js:211:5)
at EncryptedStream.Writable.write (_stream_writable.js:180:11)
at write (_stream_readable.js:583:24)
Am I cool to create a client cert with the CN of example.com, or does it need to be reverse lookup-able?
I'd be great if there were instructions on the README.md
file to generate the keys and certificates.
node client.js
crypto.js:129
c.context.setKey(options.key, options.passphrase);
^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Object.exports.createCredentials (crypto.js:129:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.