Getting Chrome to accept self-signed localhost certificate

后端 未结 30 2950
小蘑菇
小蘑菇 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:51

    For Chrome on MacOS, if you have prepared a certificate:

    • Quit Chrome (cmd+Q).
    • Start the Keychain Access app and open the "Certificates" category.
    • Drag your certificate file onto the Keychain Access window and type the password for the certificate file.
    • Double click on your certificate and unfold the "Trust" list.
      • In row "When using this certificate," choose "Always Trust."
      • Close this stuff and type your password.
    • Start Chrome and clear all caches.
    • Check that everything is ok.

提交回复
热议问题