Skip to content

Store Creation Doesn't Work with OpenJDK 15 #33

@SarahD443

Description

@SarahD443

Created a new JKS-SSH certificate store through the Keyfactor Command management portal and got this error indicating "The -keyalg option must be specified" on my machine running Java 15. Also note that the job reported that it completed successfully even though it failed and the store was not created.

2021-11-18 10:42:11.7001 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - WinRM Results: java -version 2>&1::: openjdk version "15" 2020-09-15
OpenJDK Runtime Environment (build 15+36-1562)
OpenJDK 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)

2021-11-18 10:42:11.7001 JavaKeyStoreSSH.Management [Debug] - Begin Create Operation for c:\stuff\jks\turkey1.jks on http://websrvr93.keyexample.com:5985.
2021-11-18 10:42:11.7001 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: http://websrvr93.keyexample.com:5985
2021-11-18 10:42:11.7001 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: echo '' | & 'keytool' -genkeypair -keystore 'c:\stuff\jks\turkey1.jks' -storepass [PASSWORD] -dname "cn=New Certificate Store" -validity 1 -alias "NewCertStore"
2021-11-18 10:42:12.1849 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - WinRM Results: echo '' | & 'keytool' -genkeypair -keystore 'c:\stuff\jks\turkey1.jks' -storepass [PASSWORD] -dname "cn=New Certificate Store" -validity 1 -alias "NewCertStore"::: keytool error: java.lang.Exception: The -keyalg option must be specified.

2021-11-18 10:42:12.2785 g [Debug] - AnyJob execution finished with status 2 and message Successful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions