generate_adhoc_ssl_pair: make issuer match subject #1430
With this change, the generated certificate can be trusted, and the following command starts working: openssl s_client -showcerts -connect dev:443 -verifyCAfile dev.crt </dev/null
I found the ability to trust dev certificate useful for testing client's ability to work with custom CA bundles. In particular, when implementing
The way I see it is that when a web server presents a certificate to a client, a client uses the issuer field to build the trust chain. Currently issuer points to the non-existent
When I change the issuer field to point to the dev certificate itself, and trust the dev certificate using e.g.