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 certificate
Turning off verification because you hit a self-signed certificate once is one of the unsafe defaults the course inverts.

Related terms

Taught in

References