Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to upload p12 certificate generated locally to bitbucket ?

Nouman Ahmad
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 4, 2022

Hi Guys,

I'm a bit new here and stuck with configuring the p12 certificate.

 

This p12 certificate is required in the pipeline to deploy code but I'm not sure how can I upload it to bitbucket and use it in the pipeline.

I can put it in the repo and utilize it from there but that won't be secure.

Thanks

 

 

1 answer

1 vote
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2022

G'day,

Welcome to the Bitbucket Cloud Community! 

For this particular use case, I would suggest one of two things:

1. Hosting the p12 file in a seperate private repository in your workspace where only you have access, you can then configure a repository access key (SSH) for that repo in repository settings so that it can be referenced and used in pipelines, this article explains how this can be done:
https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines

2. Hosting the p12 file in the Downloads section of the repository, this is kept separately from GIT and you can make use of our API to download and use the file accordingly in the pipeline - this will only allow authenticated users to perform this and adds another layer of security:
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-downloads/#api-group-downloads

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events