Secretless Broker: " x509: certificate signed by unknown authority" when trying to start Secretless Broker

Secretless Broker: " x509: certificate signed by unknown authority" when trying to start Secretless Broker

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


Symptom


When starting secretless broker, the broker fails to start. The following appears in the logs:
 
2019/05/30 16:34:39 Secretless starting up...
2019/05/30 16:34:39 WARN: Config file and config manager specified - forcing 'configfile' configuration manager!
2019/05/30 16:34:39 Loading internal plugins...
2019/05/30 16:34:39 - ConfigurationManagers: [configfile k8s/crd]
2019/05/30 16:34:39 - ConnectionManagers: []
2019/05/30 16:34:39 - Providers: [file keychain kubernetes literal vault aws conjur env]
2019/05/30 16:34:39 - Handlers: [pg ssh sshagent http/aws http/basic_auth http/conjur mysql]
2019/05/30 16:34:39 - Listeners: [http mysql pg ssh ssh-agent]
2019/05/30 16:34:39 Completed loading internal plugins.
2019/05/30 16:34:39 Loading external library plugins...
2019/05/30 16:34:39 Registering shutdown signal listeners...
2019/05/30 16:34:39 Initializing configuration manager 'configfile'...
2019/05/30 16:34:39 Trying to load configuration file: /etc/secretless/secretless.yml
2019/05/30 16:34:39 Configuration manager 'configfile' initialized (configSpec: '/etc/secretless/secretless.yml').
2019/05/30 16:34:39 Initializing connection managers...
2019/05/30 16:34:39 Initialization of plugins done.
2019/05/30 16:34:39 Initializing the proxy...
2019/05/30 16:34:39 Initializing health check on :5335...
2019/05/30 16:34:39 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/30 16:34:39 Waiting for valid configuration to be provided...
2019/05/30 16:34:39 Configuration manager 'configfile' provided new configuration...
2019/05/30 16:34:39 Reloading...
2019/05/30 16:34:39 ----------------------------
2019/05/30 16:34:39 Registering reload signal listeners...
2019/05/30 16:34:39 Starting all listeners and handlers...
2019/05/30 16:34:39 pg listener 'test-app-pg-listener' listening at: [::]:5432
2019/05/30 16:34:39 mysql listener 'test-app-mysql-listener' listening at: [::]:3306
2019/05/30 16:34:45 Instantiating provider 'conjur'
2019/05/30 16:34:45 Info: Conjur provider using Kubernetes authenticator-based authentication
2019/05/30 16:34:45 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:34:45 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:34:48 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:34:48 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:34:52 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:34:52 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:35:04 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:35:04 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:35:13 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:35:13 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:35:35 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:35:35 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:35:48 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:35:48 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:36:02 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:36:02 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:36:21 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:36:21 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:36:37 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:36:37 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:36:56 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretless.
2019/05/30 16:36:56 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:36:56 ERROR: Provider 'conjur' could not be used! ERROR: Conjur provider could not retrieve access token using the authenticator client: Error: Conjur provider unable to log in to Conjur: Post https://example-conjur-follower.conjursvc.cluster.local/api/authn-k8s/dev/inject_client_cert: x509: certificate signed by unknown authority

 


Environment


Secretless Broker 1.0

Cause


Bad SSL certificate for Conjur

Resolution


  • Ensure that the SSL certificate for Conjur matches exactly the one in CONJUR_SSL_CERTIFICATE or CONJUR_CERT_FILE env variable.
  • Ensure that if there are load balancers in front of the follower that you use the balancer's SSL certificate as the one to use in Secretless configuration


Actions
  • Print
  • Copy Link

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