GP-1296 corrected latent issue with self-signed cert generation

This commit is contained in:
ghidra1 2021-09-23 11:15:16 -04:00
parent 754c67b295
commit 6dd6486627

View File

@ -15,7 +15,8 @@
*/
package ghidra.net;
import java.io.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.Socket;
import java.security.*;
import java.security.cert.CertificateException;
@ -549,8 +550,8 @@ public class ApplicationKeyManagerFactory {
char[] pwd = DEFAULT_PASSWORD.toCharArray();
KeyStore selfSignedKeyStore =
ApplicationKeyManagerUtils.createKeyStore("defaultSigKey",
defaultIdentity.getName(), SELF_SIGNED_DURATION_DAYS, null,
new File(newKeystorePath), "JKS", pwd);
defaultIdentity.getName(), SELF_SIGNED_DURATION_DAYS, null, null, "JKS",
pwd);
keystoreData = new ProtectedKeyStoreData(selfSignedKeyStore, pwd);
isSelfSigned = true;
}