Using a custom certificate authority for certificate authentication
You can use your own certificate authority for certificate authentication.
To use a custom certificate authority:
-
Add a docker secret called AUTH_CUSTOM_CA, the custom certificate authority certificate file, to the webserver and authentication services in the
docker-compose.local-overrides.yml
file located in thedocker-swarm
directory:webserver: secrets: - AUTH_CUSTOM_CA authentication: secrets: - AUTH_CUSTOM_CA
-
Add the following text to the end of the
docker-compose.local-overrides.yml
file located in thedocker-swarm
directory:secrets: AUTH_CUSTOM_CA: file: {file path on host machine}
-
Start the webserver container and the authentication service.
-
Once the Black Duck services are up, make an API request which will return the Json Web Token (JWT) with the certificate key pair that was signed with the trusted certificate authority. For example:
curl https://localhost:443/jwt/token --cert user.crt --key user.key