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.ymlfile located in thedocker-swarmdirectory:webserver: secrets: - AUTH_CUSTOM_CA authentication: secrets: - AUTH_CUSTOM_CA
Add the following text to the end of the
docker-compose.local-overrides.ymlfile located in thedocker-swarmdirectory: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
Note: The user name of the certificate used for authentication must exist in the Black Duck system as its Common Name (CN).