Open IcarusCoding opened 5 months ago
Hi @IcarusCoding. I have unfortunately not been able to recreate this issue. Would it possible for you to send me the URL of the request together with the certificate you are using either as a comment here, or in an email to me on oliver@dmc.international?
When I try to issue a certificate for a user with the OIDC API, I can create a certificate with no issues:
curl -X POST "https://api.maritimeconnectivity.net/oidc/api/org/{orgMrn}/user/{userMrn}/certificate/issue-new/csr" -H "Content-Type: text/plain" -H "Authorization: Bearer {token}" --data-binary @request.csr
When I try the same using the X509 API, I always get anHTTP 403: Forbidden
error:curl -X POST "https://api-x509.maritimeconnectivity.net/x509/api/org/{orgMrn}/user/{userMrn}/certificate/issue-new/csr" -H "Content-Type: text/plain" --data-binary @request.csr --cert cert.pem --key key.pem
I tried certificate based client authentication using curl, postman and a custom solution using Java. Every approach results in the same error. The used OIDC token and the used certificate belong to the
MCPADMIN
user.