Interview Prep/Networking/HTTP, TLS & Certificates

What is a self-signed certificate and when is it acceptable?

BeginnerConceptHTTP, TLS & Certificates
Answer

A certificate signed by its own key rather than a CA, so no client trusts it by default. Fine for local development, internal tests, or when you explicitly distribute the cert to clients you control.

openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 365 -subj "/CN=localhost"

Never ship it to public users; they get NET::ERR_CERT_AUTHORITY_INVALID.

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates