Skip to content

Commit f70ebd6

Browse files
authored
Merge pull request #42 from Keyfactor/pswd-logging
Pswd logging
2 parents 7126605 + 9b64022 commit f70ebd6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v2.4.1
2+
- Fix logging issue for RFKDB
3+
14
v2.4.0
25
- Add new optional custom parameter, IgnorePrivateKeyOnInventory, for RFPEM, which will allow inventorying RFPEM certificate stores where the store password is unknown. This will make the store INVENTORY ONLY. Once the store password is added, this option can be de-selected (set to False), inventory can be run again, and then renewing/removing the certificate will be allowed.
36
- Bug fix: Discovery "Directories to Ignore" field not being used to filter results

RemoteFile/ImplementedStoreTypes/KDB/KDBCertificateStoreSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Pkcs12Store DeserializeRemoteCertificateStore(byte[] storeContentBytes, s
4646

4747
try
4848
{
49-
remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, null);
49+
remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, new string[] { storePassword });
5050

5151
byte[] storeBytes = remoteHandler.DownloadCertificateFile($"{storePath}{tempCertFile}");
5252
store.Load(new MemoryStream(storeBytes), string.IsNullOrEmpty(storePassword) ? new char[0] : storePassword.ToCharArray());
@@ -84,7 +84,7 @@ public List<SerializedStoreInfo> SerializeRemoteCertificateStore(Pkcs12Store cer
8484
certificateStore.Save(ms, string.IsNullOrEmpty(storePassword) ? new char[0] : storePassword.ToCharArray(), new Org.BouncyCastle.Security.SecureRandom());
8585
remoteHandler.UploadCertificateFile(storePath, tempCertFile, ms.ToArray());
8686
}
87-
remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, null);
87+
remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, new string[] { storePassword });
8888
byte[] storeContents = remoteHandler.DownloadCertificateFile($"{storePath}{tempStoreFile}");
8989

9090
storeInfo.Add(new SerializedStoreInfo() { Contents = storeContents, FilePath = storePath+storeFileName });

0 commit comments

Comments
 (0)