- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-31-2023 08:57 AM
Hello, I am trying to automate the configuration of the certificate part of the ts agent . My problem is to automate adding the certificate private key password in the ts agent.
I have the certificate part filled in with registry keys but i have this error message when i try to launch the PanTaservice :
01/31/23 17:18:24[Error 341]: Query password read error: 2!!!!
01/31/23 17:18:24[Error 665]: Unable to retrieve password from cred store!!!!
01/31/23 17:18:24[Error 576]: Start service fails due to start link failure!!!!
01/31/23 17:18:24[Error 409]: Start error -1!!
01/31/23 17:18:24[Info 118]: Stop driver succeeds.
01/31/23 17:18:24[Info 176]: Service stopped.
Anyone know how to do it? and where is stored this password ?
02-01-2023 06:10 AM - edited 02-01-2023 06:10 AM
I found the solution, i see 6 registry key are created in HKLM/SOFTWARE\Palo Alto Networks\TS Agent\Conf :
TSAgentCNALTNAME
TSAgentCNEXPIRY
TSAgentCNISSUER
TSAgentCNNAME
TSAgentCNSUBJECT
And TSAgentSSL, that the key used to add the password certificate.
I get the value for the key TSAgentSSL with Process Monitor application.
This registry key is deleted when the service boot. that's why i doesn't see this key before.
I add the creation of this registry key in the script and the service is booting now
01-31-2023 12:18 PM
Hi @CHARRIER ,
Was the certificate you used generated from the firewall or from internal PKI?
01-31-2023 11:08 PM
Hello @JayGolf
The certificate is generated by the internal PKI.
02-01-2023 06:10 AM - edited 02-01-2023 06:10 AM
I found the solution, i see 6 registry key are created in HKLM/SOFTWARE\Palo Alto Networks\TS Agent\Conf :
TSAgentCNALTNAME
TSAgentCNEXPIRY
TSAgentCNISSUER
TSAgentCNNAME
TSAgentCNSUBJECT
And TSAgentSSL, that the key used to add the password certificate.
I get the value for the key TSAgentSSL with Process Monitor application.
This registry key is deleted when the service boot. that's why i doesn't see this key before.
I add the creation of this registry key in the script and the service is booting now
02-02-2023 10:13 AM
Thanks for sharing @CHARRIER !
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!