Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cert Store Creation Fails Against Local Machine #34

Open
SarahD443 opened this issue Nov 19, 2021 · 0 comments
Open

Cert Store Creation Fails Against Local Machine #34

SarahD443 opened this issue Nov 19, 2021 · 0 comments

Comments

@SarahD443
Copy link

I created a new certificate store through the Keyfactor Command management portal referencing the server on which the Windows orchestrator (v8.5) was running as the target for the store. The create failed with messages seeming to suggest that the password for the store couldn't be accessed. A WinRM trace indicated that the password entered for the store at creation was in fact being passed through at the WinRM level (https://www.dpetzel.info/post/windows/debugging_winrm/).

2021-11-19 12:07:50.8710 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Trace] - WinRM Authentication Mechanism: Default
2021-11-19 12:07:51.4646 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: http://websrvr38.keyexample.com:5985
2021-11-19 12:07:51.4646 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: java -version 2>&1
2021-11-19 12:07:51.7264 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - WinRM Results: java -version 2>&1::: java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

2021-11-19 12:07:51.7264 JavaKeyStoreSSH.Management [Debug] - Begin Create Operation for c:\stuff\jks\zebra1.jks on http://websrvr38.keyexample.com:5985.
2021-11-19 12:07:51.7264 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: http://websrvr38.keyexample.com:5985
2021-11-19 12:07:51.7264 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - RunCommand: echo '' | & 'keytool' -genkeypair -keystore 'c:\stuff\jks\zebra1.jks' -storepass [PASSWORD] -dname "cn=New Certificate Store" -validity 1 -alias "NewCertStore"
2021-11-19 12:07:52.1144 JavaKeyStoreSSH.RemoteHandlers.WinRMHandler [Debug] - Exception during RunCommand...Enter key password for (RETURN if same as keystore password): Enter key password for (RETURN if same as keystore password):

2021-11-19 12:07:52.1301 g [Debug] - AnyJob execution finished with status 4 and message Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):

2021-11-19 12:07:52.1301 g [Trace] - Entered UpdateRunStatusAndMessage with current status 1 and message ""
2021-11-19 12:07:52.1301 g [Trace] - JobResult has status 3 and message "Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):
(80131500)"
2021-11-19 12:07:52.1301 g [Trace] - Leaving UpdateRunStatusAndMessage with current status 3 and message "Error: Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):
(80131500)"
2021-11-19 12:07:52.1301 g [Trace] - Sending completion for JKS-SSHManagement job id 8ae4d1e1-af99-4681-a587-d59393cbbed3
2021-11-19 12:07:52.1301 g [Trace] - Starting POST
2021-11-19 12:07:52.2081 g [Trace] - POST complete
2021-11-19 12:07:52.2081 g [Trace] - Parsing completion response for JKS-SSHManagement job id 8ae4d1e1-af99-4681-a587-d59393cbbed3
2021-11-19 12:07:52.2081 g [Trace] - Entered UpdateRunStatusAndMessage with current status 3 and message "Error: Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):
(80131500)"
2021-11-19 12:07:52.2081 g [Trace] - JobResult has status 1 and message ""
2021-11-19 12:07:52.2240 g [Trace] - Leaving UpdateRunStatusAndMessage with current status 3 and message "Error: Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):
(80131500)"
2021-11-19 12:07:52.2240 g [Debug] - Entered TaskComplete method
2021-11-19 12:07:52.2240 g [Debug] - Checking run status: 3
2021-11-19 12:07:52.2240 g [Debug] - Leaving TaskComplete method
2021-11-19 12:07:52.2240 g [Error] - Error while performing JKS-SSHManagement for job id 8ae4d1e1-af99-4681-a587-d59393cbbed3 audit id 412062: Error: Site c:\stuff\jks\zebra1.jks on server http://websrvr38.keyexample.com:5985:Enter key password for (RETURN if same as keystore password):
(80131500)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant