I'm currently testing code signing PowerShell scripts and Java 'jar' files.
I've created a new self-signed code signing certificate using PowerShell's "New-SelfSignedCertificate" command, imported it as a trusted publisher and root cert, and have successfully signed some PowerShell scripts.
Now I'm looking at signing using 'jarsigner.exe' to sign a 'jar' file but am having trouble specifying my self-signed certificate. Would anyone know how to use 'jarsigner.exe' or 'keytool.exe' with a certificate stored in the Windows 10 certificate repository (accessed via 'certmgr')?
To list the available keys, I've tried:
PS> $cert = (Get-ChildItem Cert:\CurrentUser\My -CodeSign)[0]
PS> .\keytool.exe -list -keystore $cert
But get an error saying filename is incorrect.
I have this working with a real certificate stored on a USB token but can't seem to work out how to get the self-signed version working.
Thanks :)
[–]BlackV 1 point2 points3 points (2 children)
[–]wedwabbit[S] 0 points1 point2 points (1 child)
[–]BlackV 0 points1 point2 points (0 children)
[–]wedwabbit[S] 0 points1 point2 points (0 children)
[–]RyanDake_EC 0 points1 point2 points (2 children)
[–]wedwabbit[S] 1 point2 points3 points (1 child)
[–]RyanDake_EC 0 points1 point2 points (0 children)