Getting Chrome to accept self-signed localhost certificate

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

    This post is already flooded with responses, but I created a bash script based on some of the other answers to make it easier to generate a self-signed TLS certificate valid in Chrome (Tested in Chrome 65.x). Hope it's useful to others.

    self-signed-tls bash script

    After you install (and trust) the certificate, don't forget to restart Chrome (chrome://restart)


    Another tool worth checking out is CloudFlare's cfssl toolkit:

    cfssl

提交回复
热议问题