Skip to content

Instantly share code, notes, and snippets.

@tareqmamari
tareqmamari / create_certs.js
Created August 20, 2020 09:32
Create Certs with forge npm module. Reference: https://github.com/digitalbazaar/forge#x509
var forge = require("node-forge");
var pki = forge.pki;
var asn1 = forge.asn1;
// generate a keypair and create an X.509v3 certificate
var keys = pki.rsa.generateKeyPair(2048);
var cert = pki.createCertificate();
@tareqmamari
tareqmamari / verified_commits.md
Last active July 30, 2020 23:53
Setup git to sign commits and tags

Setup git to sign commits and tags

Prerequisite

brew install gnupg

Generate Key

gpg --gen-key