Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My windows system has already imported the nginx certificate, why is it still unsafe? #1315

Open
ghost opened this issue Aug 5, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 5, 2023

Asking for help

I used cfssl to generate an nginx certificate as follows:

tee ca-csr.json <<- "EOF"
{
  "CN": "cfssl",
  "hosts": [
    "10.17.38.191"
  ],
  "key": {
    "algo": "rsa",
    "size": 2048
  },
  "names": [
    {
      "C": "US",
      "ST": "California",
      "L": "San Francisco",
      "O": "cfssl",
      "OU": "devops"
    }
  ]
}
EOF

cfssl gencert -initca ca-csr.json | cfssljson -bare ca

tee ca-config.json <<- "EOF"
{
  "signing": {
    "default": {
      "expiry": "8760h"
    },
    "profiles": {
      "nginx": {
        "usages": [
          "signing",
          "key encipherment",
          "server auth",
          "client auth"
        ],
        "expiry": "8760h"
      }
    }
  }
}
EOF

tee nginx-csr.json <<- "EOF"
{
  "CN": "10.17.38.191",
  "hosts": [
    "10.17.38.191"
  ],
  "key": {
    "algo": "rsa",
    "size": 2048
  },
  "names": [
    {
       "C": "CN",
       "ST": "Beijing",
       "L": "Beijing",
       "O": "nginx",
       "OU": "devops"
     }
  ]
}
EOF


cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=nginx nginx-csr.json | cfssljson -bare nginx

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants