How to generate X.509v3 self-signed certificate in PEM format with Node.JS

I thought this would be way harder, but thanks to the node-forge library and their perfect documentation, this was a breeze! After some experimentation I have modified their example code to have the very basic way to generate a X.509v3 self-signed certificate in PEM format. // import libraries const forge = require(‘node-forge’); const crypto = require(‘crypto’); const fs = require(‘fs’); …

How to create a strong password?

There are a few things you can do to create a strong password that will protect your account from being compromised. Use lower case, upper case, numbers, and symbols (check list of valid symbols, this could vary depending on the website / system) Use at least 12 chars to allow a wide key space Don’t use common words or easy-to-guess …