Generation and use of PEM certificates for encryption and signing using Node.js crypto and the PEM node module.
Uses:
- Node v0.12.0
- Crypto - for encryption/decryption, hash/sign/verify
- PEM - for generation of certificates
- log4js - for logging
- fs - for saving certificates/keys to files
OS: Windows 8.1 x64
- Requires OpenSSL
node Main.js
- Loads or Generates Private Key (keys/ca.privateKey)
- Loads or Generates CSR (keys/ca.csr)
- Loads or Generates Certificate (keys/ca.certificate)
- Loads or Generates Public Key (keys/ca.publicKey)
- Sign and Verify using privateKey and certificate
- Cipher and Decipher using passphrase
- Encrypt and Decrypt using privateKey and publicKey