Showing posts with label OpenSSL. Show all posts
Showing posts with label OpenSSL. Show all posts

Monday, 16 November 2026

The Joy of Self-Signed HTTPS Certificates

A self-signed HTTPS certificate is an SSL/TLS certificate that you generate and sign yourself, not issued by a trusted CA. It enables encrypted HTTPS but is not trusted by browsers by default.

It contains the same stuff that you'd expect in a CA-signed certificate (public key - typically RSA or ECDSA), digital signature and algorithm, metadata) but lacks third-party validation.

What pray tell, is the use? Development environments, internal networks and local testing. The openssl command-line tool can be used to generate keys and certificates. 

Tuesday, 20 October 2026

openssl rand

openssl rand is an OpenSSL command that generates cryptographically secure random bytes using the library's CSPRNG (cyptographically secure pseudorandom number generator) with options for raw, hex or Base64 output.

Example usage:

openssl rand -hex 16
openssl rand -base64 16

The number at the end states the number of bytes to generate. 

The GitHub location for OpenSSL can be found here. This also has extensive documentation in Markdown.

Learn more about OpenSSL here from the OSSL Guide. An interesting application of OpenSSL's capabilities is implementing systems using QUIC (a modern transport layer protocol built on UDP).

Friday, 9 October 2026

Protocol Downgrades

Protocol downgrades, also known as downgrade attacks, bidding down attacks and rollback attacks, is when a computer system is coaxed into abandoning a high quality mode of operation in favour of a lower quality mode of operation.

A historical example was a flaw in OpenSSL that enabled an attacker to use a lower version of TLS between client and server.