Setting up a HTTPS local server with self-signed certificates

Your own CA and server presenting the cert chain.