Getting Chrome to accept self-signed localhost certificate

后端 未结 30 2954
小蘑菇
小蘑菇 2020-11-21 11:30

I have created a self-signed SSL certificate for the localhost CN. Firefox accepts this certificate after initially complaining about it, as expected. Chrome and IE, however

30条回答
  •  爱一瞬间的悲伤
    2020-11-21 11:46

    I went down the process of using what bjnord suggested which was: Google Chrome, Mac OS X and Self-Signed SSL Certificates

    What is shown in the blog did not work.

    However, one of the comments to the blog was gold:

    sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain site.crt

    You'll need to follow the blog on how to get the cert file, after that you can use the command above and should be good to go.

提交回复
热议问题