Getting Chrome to accept self-signed localhost certificate

后端 未结 30 2997
小蘑菇
小蘑菇 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 12:04

    On the Mac, you can use the Keychain Access utility to add the self-signed certificate to the System keychain, and Chrome will then accept it. I found the step-by-step instructions here:

    Google Chrome, Mac OS X and Self-Signed SSL Certificates

    Basically:

    1. double-click the lock icon with an X and drag-and-drop the certificate icon to the desktop,
    2. open this file (ending with a .cer extension); this opens the keychain application which allows you to approve the certificate.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题