Error no client certificate or OAuth token received used for authentication #260
-
|
Hi, ERROR :- ejbca | 2023-03-15 06:21:06,540+0000 DEBUG [org.ejbca.core.protocol.ws.logger.TransactionLogger] (default task-5) 2023-03-15 06:21:06.538+0000;eaafb7707f00000165f08f18b794be81;20;2;certificateRequest;org.cesecore.authorization.AuthorizationDeniedException: Error no client certificate or OAuth token received used for authentication.;${ADMIN_DN};${ADMIN_ISSUER_DN} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Did you use TLS_SETUP_ENABLED="simple"? You should not use that when you want to use client certificate authentication. |
Beta Was this translation helpful? Give feedback.
-
|
I was doing that yes, I have now started from scratch and used the following docker command:
Now I have got to a position where I can enrol new devices using the rest api, however only when I am using the ManagementCA.pem file and the SuperAdmin.p12 file. Trying to use a CA I have made ( using the youtube tutorials I have MyPKIRootCAG1 and MyPKISubCAG1 CA's ) and client certificate I have made ( made through web ui, enrol -> make new request -> key-pair generation by the CA ) either through Postman or using curl gives me this error: `curl: (60) SSL certificate problem: self-signed certificate in certificate chain curl failed to verify the legitimacy of the server and therefore could not From what I understand, and I am learning as I go, the CA I have created will always have a self signed certificate in the chain. The root CA ( in my case MyPKIRootCAG1 ), has to be self signed, and so any sub CA's ( in my case MyPKISubCAG1 ) must contain a CA that's self signed in the chain. So how do I get around this issue ? Why does using the ManagementCA work as that is also self signed? Do I have the wrong understanding, or am I missing a step? |
Beta Was this translation helpful? Give feedback.
Oh for me the issue got fixed, the ejbca nginx was not configured properly to request client certificate. updated the nginx config to request the client cert and now it is able to process further.