cfssl icon indicating copy to clipboard operation
cfssl copied to clipboard

cfssl gencert fails on generation from json (v 1.2)

Open Sergey80 opened this issue 6 years ago • 1 comments

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.

Sergey80 avatar May 17 '19 00:05 Sergey80

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?

obezuk avatar Feb 03 '23 00:02 obezuk