Use this procedure to configure your {ProjectServer} to use a custom SSL certificate signed by a Certificate Authority.
The katello-certs-check
command validates the input certificate files and returns the commands necessary to deploy a custom SSL certificate to {ProjectServer}.
Important
|
Do not store the SSL certificates or .tar bundles in |
-
Validate the custom SSL certificate input files. Note that for the
katello-certs-check
command to work correctly, Common Name (CN) in the certificate must match the FQDN of {ProjectServer}.# katello-certs-check \ -c /root/{project-context}_cert/{project-context}_cert.pem \ (1) -k /root/{project-context}_cert/{project-context}_cert_key.pem \ (2) -b /root/{project-context}_cert/ca_cert_bundle.pem (3)
-
Path to {ProjectServer} certificate file that is signed by a Certificate Authority.
-
Path to the private key that was used to sign {ProjectServer} certificate.
-
Path to the Certificate Authority bundle.
If the command is successful, it returns two
{foreman-installer}
commands, one of which you must use to deploy a certificate to {ProjectServer}.
Example output ofkatello-certs-check
Validation succeeded. To install the Katello main server with the custom certificates, run: foreman-installer --scenario katello \ --certs-server-cert "/root/{project-context}_cert/{project-context}_cert.pem" \ --certs-server-key "/root/{project-context}_cert/{project-context}_cert_key.pem" \ --certs-server-ca-cert "/root/{project-context}_cert/ca_cert_bundle.pem" To update the certificates on a currently running Katello installation, run: foreman-installer --scenario katello \ --certs-server-cert "/root/{project-context}_cert/{project-context}_cert.pem" \ --certs-server-key "/root/{project-context}_cert/{project-context}_cert_key.pem" \ --certs-server-ca-cert "/root/{project-context}_cert/ca_cert_bundle.pem" \ --certs-update-server --certs-update-server-ca
Note that you must not access or modify
/root/ssl-build
. -
-
From the output of the
katello-certs-check
command, depending on your requirements, enter the{foreman-installer}
command that installs a new {Project} with custom SSL certificates or updates certificates on a currently running {Project}.If you are unsure which command to run, you can verify that {Project} is installed by checking if the file
/etc/foreman-installer/scenarios.d/.installed
exists. If the file exists, run the second{foreman-installer}
command that updates certificates.Important{foreman-installer}
needs the certificate archive file after you deploy the certificate. Do not modify or delete it. It is required, for example, when upgrading {ProjectServer}. -
On a computer with network access to {ProjectServer}, navigate to the following URL:
https://{foreman-example-com}
. -
In your browser, view the certificate details to verify the deployed certificate.