xlenam/hello-world-https-mkcert
This is an example of flask web server that deliver and html file over https in localhost without a selfsign certificate. This method avoid to accept the certificate because the certificate is signed by the CA of the machine.
HTML