Closed makagonr closed 3 years ago
I am not able to convert profiles that contain passphrases
I would like to add passphrase handling the same way as you did for passwords inside monitors
diff --git a/src/maps/custom/profile.js b/src/maps/custom/profile.js index 01d5541..d28e332 100644 --- a/src/maps/custom/profile.js +++ b/src/maps/custom/profile.js @@ -673,6 +673,7 @@ module.exports = { if (rootObjKeys.includes('clientCertificate')) newObj[certName].certificate = { bigip: rootObj.clientCertificate }; if (rootObjKeys.includes('chain') && rootObj.chain !== 'none') newObj[certName].chainCA = { bigip: rootObj.chain }; if (rootObjKeys.includes('key')) newObj[certName].privateKey = { bigip: rootObj.key }; + if (rootObjKeys.includes('passphrase')) newObj[certName].passphrase = buildProtectedObj(rootObj.passphrase); } const cert = loadCertsAndKeys(rootObj.clientCertificate, loc, file); @@ -759,6 +760,7 @@ module.exports = { if (certConfKeys.includes('cert')) newObj[certName].certificate = { bigip: certConf.cert }; if (certConfKeys.includes('chain')) newObj[certName].chainCA = { bigip: certConf.chain }; if (certConfKeys.includes('key')) newObj[certName].privateKey = { bigip: certConf.key }; + if (certConfKeys.includes('passphrase')) newObj[certName].passphrase = buildProtectedObj(certConf.passphrase); } certRef = certRef.replace('.crt', ''); }
CHARON-452 filed for internal tracking!
Resolved
Is your feature request related to a problem? Please describe.
I am not able to convert profiles that contain passphrases
Describe the solution you'd like
I would like to add passphrase handling the same way as you did for passwords inside monitors
Additional context