Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Digicert keylocket integration with bamboo

anshul gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 18, 2024

Hello Community,

We need urgent help in digicert keylocker integration with bamboo. I sign the script using digicert keylocker. Manually I am able to run the script however when I try to run via bamboo task, it failed with authorization issue. Bamboo doesn't recognize digicert keylocker certificate. 

 

Please help

1 answer

0 votes
Khushboo Gupta
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2024

Hello @anshul gupta 

I understand that you're encountering issues with Bamboo not recognizing the DigiCert KeyLocker certificate. Here are a few suggestions that might help resolve the issue:

1. Check the Bamboo build agent's permissions: The user under which the Bamboo agent is running should have the necessary permissions to access and use the certificate. If the agent is running as a service, it might be using a different user context that does not have access to the certificate.

2. Import the certificate into the Java Keystore: Bamboo, being a Java application, uses the Java Keystore for its certificates. You can try importing the DigiCert KeyLocker certificate into the Java Keystore used by Bamboo.

Here is a command example to import a certificate into the Java Keystore:

keytool -import -alias myalias -file mycertificate.cer -keystore cacerts

Replace `myalias` with a unique name for this certificate in the Java Keystore, `mycertificate.cer` with the path to your certificate file, and `cacerts` with the path to the Java Keystore file used by your Bamboo installation (usually located in your Java installation directory under `jre/lib/security/cacerts`).

3. Configure Bamboo to use the certificate: Script Task Configuration: Check how the script is executed in Bamboo. If it’s a PowerShell script, you may need to add the -File parameter and ensure it's called with the necessary privileges. The task configuration should look something like this: powershell -File "path\to\script.ps1

4. Execution Policy: Bamboo's default shell is bash, so you need to make sure that your Bamboo task is configured to use PowerShell. Also, check the PowerShell execution policy on the Bamboo agent. If the execution policy is set to Restricted, scripts won't run. You can check the execution policy by running `Get-ExecutionPolicy` in PowerShell, and you can change it by running `Set-ExecutionPolicy Unrestricted` (Please consider the security implications before changing this setting).

Please let me know if you're still facing issues after trying these steps.

Regards,

Khushboo Gupta

*please don't forget to Accept the answer if your query was answered*

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events