Managing certificates is essential for secure communication between Black Duck SCA and its clients. This guide outlines the steps needed to generate and manage required certificates efficiently.
Before You Begin
Ensure you have OpenSSL installed on your system
Have administrator access to your Black Duck SCA instance
Know your organization's certificate requirements
Generate a Certificate in Three Simple Steps
Create Your Certificate Files
Run this single command to generate both your private key and certificate signing request:
openssl req -new -newkey rsa:2048 -nodes -keyout privateKey.key -out certificateSigningRequest.csrYou'll be prompted to enter information for your certificate. Complete each field as requested.
Get Your Certificate Signed
Choose one option:
Option A: Self-signed certificate (for testing environments)
openssl x509 -req -days 365 -in certificateSigningRequest.csr -signkey privateKey.key -out certificate.crtOption B: CA-signed certificate (recommended for production) Submit your CSR file to your Certificate Authority and follow their process.
Install Your Certificate
Place your certificate files in the appropriate directory
Update your Black Duck SCA configuration to reference these files:
# Example configuration entry hub.webserver.certificate.path=/path/to/certificate.crt hub.webserver.privatekey.path=/path/to/privateKey.key
Verification
Test your certificate installation with:
curl -v https://your-blackduck-server.com/api/current-versionYou should see your certificate details and a successful connection.