I'm running a Powershell script that is updating a properties file in a java application and using Keytool to convert keys from PFX to JKS format.
I'm trying to convert a PFX to a JKS. I can't specify -"destalias" without specifying "-srcalias". The certificate being a PFX, I don't think it has an alias, but only a fingerprint.
However Keytool seems to see that the PFX has an Alias and it's using that value to auto-populate the Alias value of the JKS file.
I need the value of the Alias as a string to update my properties file.
Question:
Is there a way using Keytool or Powershell to either get the alias value from a PFX or a JKS as a String value.
Thank you!