Security and certificates
Certificates, secrets, checksums and firewalls. 9 commands.
- Make a self-signed certificate with OpenSSLCreate a certificate and key for testing HTTPS, in one command.
- Generate a random secret or IDA strong random key for things like JWT secrets and API tokens, or a fresh UUID.
- Use HTTPS on localhost (mkcert)A trusted certificate for localhost, so your local app runs on https:// with no browser warnings.
- Check a file's checksumMake sure a download wasn't corrupted or tampered with, by comparing its SHA-256 hash.
- Check a website's certificate and when it expiresSee who issued a site's HTTPS certificate and its expiry date, from the terminal.
- Combine a .key and .crt into a .pem fileSome servers want the key and certificate in a single .pem file. Join them in one command.
- Fix "SSL certificate problem: unable to get local issuer certificate"curl or Git can't verify a certificate, often behind a company proxy. Point them at the right certificate instead of turning checks off.
- Turn on disk encryptionScramble everything on your computer's drive, so a lost or stolen laptop is useless to a thief.
- Turn on the firewallSwitch on the built-in firewall so your computer turns away connections it didn't ask for.