Skip to content

Commit

Permalink
Fix logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leefine02 authored and leefine02 committed Nov 28, 2023
1 parent 7126605 commit e468a27
Showing 1 changed file with 2 additions and 2 deletions.
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 e468a27

Please sign in to comment.