DAP - 500 internal server error when attempting to fetch a seed file

DAP - 500 internal server error when attempting to fetch a seed file

125
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:54 PM


Symptom


This solution is only applicable if the following is true:

  • A follower is being deployed in k8s/OCP using the auto-enrollment capability
  • The master has been configured to use 3rd party signed certificates

When attempting to use the seed file webservice to obtain a seed file, a 500 error is encountered after successfully authenticating. The error message in the seed fetcher authenticator container will look like the following:

443... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2021-03-08 16:38:12 ERROR 500: Internal Server Error.

 



Environment


11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;20.7;21.1;21.2 DAP v11 and higher

Cause


The root cause is that the webservice used for fetching a seed is unable to find a certificate that matches the FQDN used in the seed request. To confirm that this is indeed the case, list the contents of /opt/conjur/etc/ssl on the leader and confirm that there exists a certificate file named `follower.fqdn.pem`.

When a seed file is requested, the leader will first check for a file that has a name that matches the follower FQDN used in the request. If a file of that name is found, it is then checked to ensure that the certificate file has the follower FQDN in either the subject or subject alt names. If either of these checks fails, the leader will attempt to generate a new certificate containing this name. However, when using 3rd party signed certificates the leader does not have a private key for the CA. This means the leader will not be able to issue a new certificate. In the docker logs of the leader, you will see an error message regarding the root key not being present. This is referring to a private key for a signing CA.



Resolution


Follower Certificate hasn't been loaded on the leader yet
  • Request a certificate with the FQDN of the follower
  • Follow the documentation for importing a follower certificate
  • Confirm the issue is resolved
Certificate with the follower FQDN has already been loaded, but it has a different file name
  • Confirm that a certificate has been loaded on the leader with the follower FQDN as the subject alt name.
  • Create a copy of the certificate that has the follower FQDN in the subject alt names in /opt/conjur/etc/ssl with a file name that matches the follower FQDN used in the seed request
  • Note: When importing a certificate, the CN value from the certificate subject is used by default as the file name in /opt/conjur/etc/ssl


Actions
  • Print
  • Copy Link

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