encrypted key with kid was not found [!help] #1864
-
Hi! I am trying to set up step-ca for my homelab, I have been trying to use ansible but the issue IS NOT ANSIBLE RELATED, I am having difficulty adding a jwk provider, my ansible config will manually add the entry to my providers array in ca.json by running: Refering to the encrypted key given by the kid, Here is my ca.json: Ansible configuration: Running step-ca (without ansible)
Client side certificate generation, (without ansible)
If there are any extra logs or info needed, i would be happy to give, the domain i am trying to certify for my homelab is, spidershomelab.net |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @SpiderUnderUrBed, in your Ansible config you calculate the |
Beta Was this translation helpful? Give feedback.
-
This is actually the issue i stumbled upon, I was worried it was unrelated, encrypted_key provided by private.jwk looks like this: The one provided on the website as a exmaple is in this format: eyJhbGciOiJQQkVTMi1IUzI1NitBMTI4S1ciLCJjdHkiOiJqd2sranNvbiIsImVuYyI6IkEyNTZHQ00iLCJwMmMiOjEwMDAwMCwicDJzIjoiTlV6MjlEb3hKMVdOaFI3dUNjaGdYZyJ9.YN7xhz6RAbz_9bcuXoymBOj8bOg23ETAdmSCRyHpxGekkV0q3STYYg.vo1oBnZsZjgRu5Ln.Xop8AvZ74h_im2jxeaq-hYYWnaK_eF7MGr4xcZGodMUxp-hGPqS85oWkyprkQLYt1-jXTURfpejtmPeB4-sxgj7OFxMYYus84BdkG9BZgSBmMN9SqZItOv4pqg_NwQA0bv9g9A_e-N6QUFanxuYQsEPX_-IwWBDbNKyN9bXbpEQa0FKNVsTvFahGzOxQngXipi265VADkh8MJLjYerplKIbNeOJJbLd9CbS9fceLvQUNr3ACGgAejSaWmeNUVqbho1lY4882iS8QVx1VzjluTXlAMdSUUDHArHEihz008kCyF0YfvNdGebyEDLvTmF6KkhqMpsWn3zASYBidc9k._ch9BtvRRhcLD838itIQlw So clearly something is wrong here, i tried adding the ciphertext but that returned with a error, so does putting the key given by private.jwk: |
Beta Was this translation helpful? Give feedback.
-
Ah that command, step crypte jose helped! I got it all working now, i just reformatted this to a ansible block: Thanks! I'll close this discussion |
Beta Was this translation helpful? Give feedback.
After generation of the JWK, you can reformat the private key in
/home/spiderunderurbed/ansible/step-ca/certs/private.jwk
to the compact format usingstep crypto jose format /home/spiderunderurbed/ansible/step-ca/certs/private.jwk
. It'll be printed, so you'll have to redirect the output. That should give you a similar output as the one in the example.