All Projects → codevibess → Openssl Nodejs

codevibess / Openssl Nodejs

Licence: mit
is a package which gives you a possibility to run every OpenSSL command 🔒 in Node.js in a handy way. Moreover, parameters like -in, -keyin, -config and etc can be replaced by a raw data (Buffor).

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Openssl Nodejs

pki-manager
IT Freelancers : Manage small PKI for multiple projects (or clients) with 2 bash scripts
Stars: ✭ 36 (+44%)
Mutual labels:  certificate, openssl, x509
Jsrsasign
The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES JSON Web Signature/Token in pure JavaScript.
Stars: ✭ 2,760 (+10940%)
Mutual labels:  certificate, rsa, x509
Ssl Checker
Python script that collects SSL/TLS information from hosts
Stars: ✭ 94 (+276%)
Mutual labels:  certificate, openssl, x509
x509sak
X.509 Swiss Army Knife is a toolkit atop OpenSSL to ease generation of CAs and aid white-hat pentesting
Stars: ✭ 23 (-8%)
Mutual labels:  certificate, openssl, x509
Mirror
Deploy Google and Wikipedia mirror with one command using now.sh.
Stars: ✭ 93 (+272%)
Mutual labels:  certificate, ssl-certificate
openssl-ca
Shell scripts to manage a private Certificate Authority using OpenSSL
Stars: ✭ 38 (+52%)
Mutual labels:  openssl, x509
Certigo
A utility to examine and validate certificates in a variety of formats
Stars: ✭ 662 (+2548%)
Mutual labels:  certificate, x509
qsslcaudit
test SSL/TLS clients how secure they are
Stars: ✭ 22 (-12%)
Mutual labels:  certificate, openssl
openssl ca
openssl_ca with QT GUI
Stars: ✭ 16 (-36%)
Mutual labels:  certificate, openssl
django-yadpt-starter
Yet Another Django Project Template skeleton for Django projects
Stars: ✭ 28 (+12%)
Mutual labels:  certificate, ssl-certificate
openssl-alpine
OpenSSL three tier certificate generator
Stars: ✭ 23 (-8%)
Mutual labels:  certificate, openssl
littleca
littleca是一个基于BC的小型ca库,支持ecc,rsa,dsa,sm2的证书签发,加密解密,签名验签操作,支持国密加解密,证书签发
Stars: ✭ 44 (+76%)
Mutual labels:  openssl, rsa
cloud-signature-consortium
Cloud Signature Consortium Remote Signature Service Provider in Node.js
Stars: ✭ 19 (-24%)
Mutual labels:  certificate, openssl
concerto
A command line tool and a library to generate TLS certificates for development purposes.
Stars: ✭ 34 (+36%)
Mutual labels:  certificate, x509
pki
Certificate Authority management suite
Stars: ✭ 23 (-8%)
Mutual labels:  openssl, x509
efm-certvalidator
Certificate validator for X.509 certificates.
Stars: ✭ 25 (+0%)
Mutual labels:  certificate, x509
Webpki
WebPKI X.509 Certificate Validation in Rust
Stars: ✭ 311 (+1144%)
Mutual labels:  certificate, x509
Crypt Le
Crypt::LE - Let's Encrypt / Buypass / ACME client and library in Perl for obtaining free SSL certificates (inc. generating RSA/ECC keys and CSRs). HTTP/DNS verification is supported out of the box, easily extended with plugins, easily dockerized.
Stars: ✭ 277 (+1008%)
Mutual labels:  certificate, rsa
Forge
A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
Stars: ✭ 4,204 (+16716%)
Mutual labels:  certificate, x509
Pem
Create private keys and certificates with node.js
Stars: ✭ 496 (+1884%)
Mutual labels:  certificate, ssl-certificate

openssl-nodejs

is a package which gives you a possibility to run every OpenSSL command in Node.js in a handy way. Moreover, parameters like -in, -keyin, -config and etc can be replaced by a raw data (Buffor).

Installation & Usage

npm install openssl-nodejs

Import openssl module:

const openssl = require('openssl-nodejs')

Next, invoke openssl function and put command with parameters inside a function like presented in the example below.

openssl('openssl req -config csr.cnf -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout key.key -out certificate.crt')

To get access to the result of execution specify callback function as the last parameter of openssl function (with arguments err and buffer).

openssl function can be invoked with a single parameter like OpenSSL command (see example above) or within an array with command name and parameters itself.

openssl(['req', '-config', 'csr.conf', '-out', 'CSR.csr', '-new', '-newkey', 'rsa:2048', '-nodes', '-keyout', 'privateKey.key', function (err, buffer) {
console.log(err.toString(), buffer.toString());
});

If you want to specify Buffer text instead of the file as an input/output or whatever you need, use the version with an array as a function parameter. And put an object with keys: name: (specify a name of file which will be created to handle this command), and buffer: (your buffer variable) Example of object:

{ name:'csr.conf', buffer: BufferVariable }

Command example:

openssl(['req', '-config', { name:'csr.conf', buffer: BufferVariable }, '-out', 'CSR.csr', '-new', '-newkey', 'rsa:2048', '-nodes', '-keyout', 'privateKey.key'], function (err, buffer) {
console.log(err.toString(), buffer.toString());
});

When you used a command which generates additional output in file format this package will create a folder openssl/ in the directory where the command was invoked. All output files will appear in this folder (openssl).

Note:

If u want to use a command which needs additional interaction use parameter -config and specify pass to file with configuration.


That's all that you need to start using it.

For any information, improvements or bug fixes please contact me. If it's package was useful for you please give a star in GitHub. (really inspiring me to new ones)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].