Skip to content

Commit

Permalink
Merge pull request #42 from Keyfactor/pswd-logging
Browse files Browse the repository at this point in the history
Pswd logging
  • Loading branch information
fiddlermikey authored Jan 3, 2024
2 parents 7126605 + 9b64022 commit f70ebd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -84,7 +84,7 @@ public List<SerializedStoreInfo> 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 });
Expand Down

0 comments on commit f70ebd6

Please sign in to comment.