self-signed certificate
A certificate signed by its own key rather than by a separate authority, trusted only if you choose to trust it directly.
Teaching users or clients to accept unknown self-signed certificates lets an attacker in the middle present their own and read the traffic.
In more detail
Every root authority certificate is self-signed. Turning off verification because a service uses a self-signed certificate is the wrong fix; trust that certificate or its authority explicitly instead.
Examples
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -noenc -keyout fake.key -out fake.pem -subj "/CN=www.example.com"openssl verify result for the impostor: self-signed certificateTurning off verification because you hit a self-signed certificate once is one of the unsafe defaults the course inverts.Related terms
- root CA — The top certificate authority in a chain of trust, whose self-signed certificate is installed in advance in browsers and operating systems as a starting point for trust.
- certificate authority — A trusted party that signs certificates, so anyone who trusts it can trust the certificates it issued.
- man-in-the-middle attack — An attack where someone secretly sits between two parties, relaying and possibly altering their traffic while each thinks it talks to the other.
- trust store — The list of root certificate authorities a client trusts, usually supplied by the operating system or passed explicitly.
- certificate verification — The client's checks that a server certificate chains to a trusted authority, is in date, and names the host it asked for.
Taught in
- Public Key Infrastructure: X.509 Certificates & CAs — Cybersecurity Fundamentals, GRC & Cryptography
- Secure Defaults — Application Security & Threat Modeling for Engineers
- TLS And The Handshake — Application Security & Threat Modeling for Engineers