Skip to content

本地配置https #12

@wilon

Description

@wilon
  1. go get github.com/FiloSottile/mkcert

  2. mkcert -install

  3. mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1

    会生成example.com+3.pem example.com+3-key.pem

  4. 配置 Nginx

    server_name localhost;
    listen 443 ssl;
    listen [::]:443 ssl;
    ssl_certificate /your_cert_path/example.com+3.pem;
    ssl_certificate_key /your_cert_path/example.com+3-key.pem;
  1. 重启 Nginx,浏览器验证

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions