Ephemeral EJBCA Container + EJBCA Go Client = tls: failed to verify certificate #411
-
I'm running an ephemeral docker container on an AWS EC2 instance with:
Locally, I want to use the EJBCA Go Client to consume the REST API. I've used the RA Web interface to generate a client certificate from a locally produced CSR and in the Go code have set an When I call
I think this means that I haven't properly configured my client (my local Mac) with "...this certificate be registered with the client as a root of trust" as described in the Getting Started With the Go Client Library. I did use Keychain Access to add the Management CA and marked it as trusted. Any pointers? Can I consume the REST API from this ephemeral container? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
I can answer one of your questions. |
Beta Was this translation helpful? Give feedback.
I was using the wrong CA file when specifying the
ejbca.Config.CAFile.
I was using the RootCA rather than the actual Server certificate. Specifying the server certificate resolved the TLS error. See the docs here.