Skip to content

Commit f645f8b

Browse files
author
Lee Fine
committed
ab#80665
1 parent a0653f9 commit f645f8b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public string FindKeyPairByCertPath(string certPath)
290290
}
291291
}
292292

293-
public void UpdateKeyPair(string keyPairName, string certFileName, string keyFileName)
293+
public void UpdateKeyPair(string keyPairName, string certFileName, string keyFileName, string keyPassword)
294294
{
295295
Logger.MethodEntry(LogLevel.Debug);
296296

@@ -305,8 +305,7 @@ public void UpdateKeyPair(string keyPairName, string certFileName, string keyFil
305305
key = keyFileName,
306306
inform = "PEM",
307307
nodomaincheck = true,
308-
passplain = "0",
309-
password = false
308+
passplain = keyPassword
310309
};
311310

312311
var filters = new filtervalue[1];

CitrixAdcOrchestratorJobExtension/Management.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private void PerformAdd(CitrixAdcStore store, ManagementJobCertificate cert, str
214214
_logger.LogDebug("Updating keyPair");
215215

216216
var (pemFile, privateKeyFile) = store.UploadCertificate(cert.Contents, cert.PrivateKeyPassword, storePassword, cert.Alias, overwrite);
217-
store.UpdateKeyPair(cert.Alias, pemFile.filename, privateKeyFile.filename);
217+
store.UpdateKeyPair(cert.Alias, pemFile.filename, privateKeyFile.filename, storePassword);
218218

219219
_logger.LogDebug("Updating cert bindings");
220220
//update cert bindings

0 commit comments

Comments
 (0)