From e468a270373bb94b2d65ca6e38036ebc278ceb17 Mon Sep 17 00:00:00 2001 From: leefine02 Date: Tue, 28 Nov 2023 16:12:37 +0000 Subject: [PATCH 1/2] Fix logging issue --- .../KDB/KDBCertificateStoreSerializer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RemoteFile/ImplementedStoreTypes/KDB/KDBCertificateStoreSerializer.cs b/RemoteFile/ImplementedStoreTypes/KDB/KDBCertificateStoreSerializer.cs index 2db1dd03..177efaa8 100644 --- a/RemoteFile/ImplementedStoreTypes/KDB/KDBCertificateStoreSerializer.cs +++ b/RemoteFile/ImplementedStoreTypes/KDB/KDBCertificateStoreSerializer.cs @@ -46,7 +46,7 @@ public Pkcs12Store DeserializeRemoteCertificateStore(byte[] storeContentBytes, s try { - remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, null); + remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, new string[] { storePassword }); byte[] storeBytes = remoteHandler.DownloadCertificateFile($"{storePath}{tempCertFile}"); store.Load(new MemoryStream(storeBytes), string.IsNullOrEmpty(storePassword) ? new char[0] : storePassword.ToCharArray()); @@ -84,7 +84,7 @@ public List SerializeRemoteCertificateStore(Pkcs12Store cer certificateStore.Save(ms, string.IsNullOrEmpty(storePassword) ? new char[0] : storePassword.ToCharArray(), new Org.BouncyCastle.Security.SecureRandom()); remoteHandler.UploadCertificateFile(storePath, tempCertFile, ms.ToArray()); } - remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, null); + remoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, new string[] { storePassword }); byte[] storeContents = remoteHandler.DownloadCertificateFile($"{storePath}{tempStoreFile}"); storeInfo.Add(new SerializedStoreInfo() { Contents = storeContents, FilePath = storePath+storeFileName }); From 9b640224b484633223b7d84d905330fc0c49a83b Mon Sep 17 00:00:00 2001 From: leefine02 Date: Tue, 28 Nov 2023 16:14:22 +0000 Subject: [PATCH 2/2] Fix logging issue --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index da7a1e8c..1bada2f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +v2.4.1 +- Fix logging issue for RFKDB + v2.4.0 - 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. - Bug fix: Discovery "Directories to Ignore" field not being used to filter results