cfssl
cfssl copied to clipboard
cfssl gencert fails on generation from json (v 1.2)
cfssl v 1.2
cfssl gencert -initca ca/ca-csr.json
where the json is:
{
"hosts": [
"cluster.local"
],
"key": {
"algo": "rsa",
"size": 2048
},
"names": [
{
"C": "CA",
"L": "Montreal",
"O": "My Inc.",
"OU": "QC",
"ST": "Montreal"
}
]
}
I got a err msg:
Must specify bundle target through -cert or -domain
From the example seems I use it the same way.
checking the code:
not sure how would it go to that condition.
Q: what actually the way I can use it? to generate the certificate from the JSON file.
I ran in to this by accidentally installing cfssl-bundle instead of cfssl (the link needs to be expanded on the releases page). Could that have been the issue for you?