cfssl icon indicating copy to clipboard operation
cfssl copied to clipboard

Newcert Request Docs

Open anniephan opened this issue 10 years ago • 1 comments

Executing the example request in the newcert documentation now throws an "invalid algorithm" error.

I altered the request from

{    
    "request": {
         "hosts":["www.example.com"], 
         "names":[{"C":"US", "ST":"California", "L":"San Francisco", "O":"example.com"}], 
         "CN": "www.example.com"
     } 
}

to

{    
    "request": {
         "hosts":["www.example.com"], 
         "names":[{"C":"US", "ST":"California", "L":"San Francisco", "O":"example.com"}], 
         "CN": "www.example.com",
         "key":{"algo":"rsa","size":2048}
     } 
}

adding the "key" field and that seems to fix it. The newcert documentation should probably be updated to account this change.

anniephan avatar Dec 09 '15 22:12 anniephan

The problem was csr.New() was creating an invalid Key (algo and size set to ""), I've updated it to use the right helper function.

0xhaven avatar Dec 10 '15 00:12 0xhaven