node-x509 | Simple X509 certificate parser | TLS library

 by   Southern C++ Version: v0.3.2 License: No License

kandi X-RAY | node-x509 Summary

kandi X-RAY | node-x509 Summary

node-x509 is a C++ library typically used in Security, TLS applications. node-x509 has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Simple X509 certificate parser.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              node-x509 has a low active ecosystem.
              It has 102 star(s) with 80 fork(s). There are 11 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 24 open issues and 28 have been closed. On average issues are closed in 68 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of node-x509 is v0.3.2

            kandi-Quality Quality

              node-x509 has 0 bugs and 0 code smells.

            kandi-Security Security

              node-x509 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              node-x509 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              node-x509 does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              node-x509 releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-x509
            Get all kandi verified functions for this library.

            node-x509 Key Features

            No Key Features are available at this moment for node-x509.

            node-x509 Examples and Code Snippets

            No Code Snippets are available at this moment for node-x509.

            Community Discussions

            QUESTION

            Using node.js to verify a X509 certificate with CA cert
            Asked 2019-Jul-01 at 14:04

            I am looking for a node.js way to verify a client certificate in X509 format with a CA certificate which was given to me (none of those are created/managed by me, my software only has to verify what is beeing sent to it).

            I have found several modules for this job, however I am having issues with each of them:

            • X509 is able to do it using x509.verify(cert, CABundlePath, cb), however it needs to read the certificates from FS, and I am having them in memory already. This is cumbersome as it will be done with each web request which reaches my app.
            • It seems like PKI.js is able to do it, however their examples don't work for me but complain about missing files, so I can't even try it out.
            • I tried node-forge, but while I am unsure if I use it correctly (they don't have any API documentation) its throwing a forge.pki.BadCertificate error from forge.pki.verifyCertificateChain(caStore, [ cer ], cb).
            • When trying pem, using a simple pem.verifySigningChain(cer, [ ca ], cb) would throw some error complaining about loading a file from /var/.... Even if it would work, I would avoid using this lib as its relying on the openssl command line tool, which I would like to avoid

            Now I feel pretty stupid because I failed to get this simple task done with any of the above modules. Could someone point me to a simple solution which will allow me to verify the signature/validity of a X509 certificate using a given CA certificate? :s

            [edit] Basically I would need openssl verify -verbose -CAfile ca-crt.pem client1-crt.pem in Node.js but without dependencies to the openssl command line tool and without temporarily saving the certs to disk.

            [edit2] Would it be possible to just use https://nodejs.org/api/crypto.html#crypto_verify_verify_object_signature_signatureformat?

            ...

            ANSWER

            Answered 2019-Jul-01 at 14:04

            I finally managed to do it using node-forge. Heres a working code example:

            Source https://stackoverflow.com/questions/48377731

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install node-x509

            From NPM (recommended): npm install x509.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TLS Libraries

            mkcert

            by FiloSottile

            v2rayN

            by 2dust

            acme.sh

            by acmesh-official

            nginxconfig.io

            by digitalocean

            v2ray

            by 233boy

            Try Top Libraries by Southern

            async

            by SouthernGo

            php-obfuscator

            by SouthernPHP

            lexer

            by SouthernGo

            scanner

            by SouthernGo

            sockserver

            by SouthernJavaScript