PSM for Web services stop functioning upon proxy restart for deployments of at least one year

PSM for Web services stop functioning upon proxy restart for deployments of at least one year

111
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 16:11 PM


Symptom


On environments that have been deployed for at least one year, PSM for Web might stop functioning due to expired certificates. The symptoms will be:
  • After a reboot, service becomes unavailable. Error in logs: 
    The connection to the server 192.168.160.68:6443 was refused - did you specify the right host or port? 
    error: expected 'logs (POD | TYPE/NAME) [CONTAINER_NAME]'. POD or TYPE/NAME is a required argument for the logs command See 'kubectl logs -h' for help and examples
    
  • Upgrades fail. Error in logs
    Installing Vaultive latest version, please wait... 
    Error: Get https://192.168.160.68:6443/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp 192.168.160.68:6443: connect: connection refused
    
  • Changing the password in the PSM for Web Console fails.
    Error in Admin console: Invalid username / password
  • Kubernetes commands on the command line (via ssh) fail, indicating expired certificates.
    [authentication.go:64] Unable to authenticate the request due to an error: [x509: certificate has expired or is not yet valid, x509: certificate has expired or is not yet valid] 
    
To verify that expired certificates are causing the problem, run the following command on the PSM for Web proxy server:
openssl x509 -in /etc/kubernetes/pki/apiserver.crt -noout -text
Look for the line starting with "Not After :". This is the expiration date of the certificate. If the date has passed, the certificate is expired.


Environment


10.7;10.8;10.9;10.10;11.1;11;11.2;11.3 PAS
PSM for Web


Cause


When deploying the PSM for Web OVA, Kubernetes certificates are generated with an expiration date of one year forward from the date of the deployment. Once the year has passed, Kubernetes components lose connectivity to each other, and services are no longer started or maintained. The result is that PSM for Web is no longer functional.

Resolution


To prevent the situation, or remediate it after it has already happened, a script is provided that extends the expiration date for another year.

Download the Zip file attached to this article that contains the script and a text file with instructions on how to run the script.
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001cb9CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail