cloudflare / cloudflare/cfssl

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

Open
#1,315 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
9.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Asking for help

I used cfssl to generate an nginx certificate as follows:
```sh
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](https://github.com/cloudflare/cfssl/assets/51149477/ac9f87d1-479a-4f53-bf63-8d4e1b1dd41b)
![image](https://github.com/cloudflare/cfssl/assets/51149477/6bdb295f-f445-4e63-ab05-d23ea78d80a3)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the cfssl commands and the certificate details shown in the screenshots, then check whether Windows trusts ca.pem and whether nginx presents nginx.pem for 10.17.38.191. A useful resolution would identify why the browser still reports the connection as unsafe and document the required certificate or nginx configuration change.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.