Getting Chrome to accept self-signed localhost certificate

后端 未结 30 2906
小蘑菇
小蘑菇 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-21 11:52

    This worked for me. See: http://www.robpeck.com/2010/10/google-chrome-mac-os-x-and-self-signed-ssl-certificates/#.Vcy8_ZNVhBc

    In the address bar, click the little lock with the X. This will bring up a small information screen. Click the button that says "Certificate Information."

    Click and drag the image to your desktop. It looks like a little certificate.

    Double-click it. This will bring up the Keychain Access utility. Enter your password to unlock it.

    Be sure you add the certificate to the System keychain, not the login keychain. Click "Always Trust," even though this doesn't seem to do anything.

    After it has been added, double-click it. You may have to authenticate again.

    Expand the "Trust" section.

    "When using this certificate," set to "Always Trust"

提交回复
热议问题