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
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.