Currently we are using the keys stored in plain text in a private location:
new BitbucketServerRepository().sshPrivateKey(privKey).sshPublicKey(pubKey);
We would like to switch to encrypted keys with "Specs > Sensitive data encryption", so we can store the encrypted keys in an open location.
What is the correct way to achieve this?
Do I just put the encrypted versions instead of plain text, like
new BitbucketServerRepository().sshPrivateKey(encryptedPrivKey).sshPublicKey(encryptedPubKey);
and Bamboo will figure it out automatically and decrypt when it will try to access the repository? Or some other steps should be done to get it working?
I'm using Bamboo 6.10.6, if it matters.