-
I am trying to setup a step-ca with the scep endpoint and a webhook to verify the requests. I got to the point where i can use the scep endpoint with a static secret. Now i want to add a custom webhook to verify the request. So far with out success. Are there debug logs i could enable to get more details about what went wrong? I tried setting Here is what i have tried so far: I read through https://smallstep.com/docs/step-ca/webhooks/ to implement a webhook server myself. For now, the webhook server always responses with I generated a certificate and installed it on the webhook server:
I can verify the ssl certificate successfully and curl that endpoint from the scep server without ssl errors:
Afterwards i added the webhook to my provisioner like so:
When i now try to request a certificate with the scep provisioner i recieve the error
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I tried looking through the source code to find out whats happening. I'm sorry if i misunderstood anything here, but i am not familiar with go. As far as i can see the only place this error is produced is directly inside the api call to PKIOperation. |
Beta Was this translation helpful? Give feedback.
-
In the meantime i went ahead and edited the PKIOperation to pass the error of ValidateChallenge to createFailureResponse. This then logged the actual error and enabled me to figure out what went wrong. As it turns out the new scepErr thats currently used also obfuscates sever side errors like typos in the template used to generate a certificate. |
Beta Was this translation helpful? Give feedback.
In the meantime i went ahead and edited the PKIOperation to pass the error of ValidateChallenge to createFailureResponse.
This then logged the actual error and enabled me to figure out what went wrong. As it turns out the new scepErr thats currently used also obfuscates sever side errors like typos in the template used to generate a certificate.