serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

How to test local HTTPS?

Open Remzi1993 opened this issue 6 years ago • 2 comments

Hi folks,

I would like to test my local build. I have already a local test CA and private key and certificate. I use mkcert for that.

Are there any options for this?

Kind regards, Remzi

Remzi1993 avatar Nov 23 '19 13:11 Remzi1993

type "serve -h" to see the ssl options

charleskoehl avatar Dec 11 '20 06:12 charleskoehl

From "serve -h":

--ssl-cert                          Optional path to an SSL/TLS certificate to serve with HTTPS
                                        Supported formats: PEM (default) and PKCS12 (PFX)
--ssl-key                           Optional path to the SSL/TLS certificate's private key
                                       Applicable only for PEM certificates
--ssl-pass                          Optional path to the SSL/TLS certificate's passphrase

goldingdamien avatar May 30 '23 13:05 goldingdamien