Using Custom Certificates
Was this helpful?
Starting from this release, you can configure custom SSL/TLS certificates for your Self-hosted Private Cloud Director deployment. Previously, the system only used self-signed certificates generated during the deployment process.
By default, the system generates self-signed certificates during installation. You can now:
Use your own custom-signed certificates
Continue using automatically generated self-signed certificates
You can apply custom certificates during a new installation or update existing deployments using the renew-certs command.
Prerequisites
A valid SSL/TLS certificate file (.crt)
A corresponding private key file (.key)
Read access to both files for the user running the configuration
You can provide the certificate and key paths using either of these methods.
Option A: Export as environment variables
export USER_CERT_PATH="_path_to_service.crt"
export USER_KEY_PATH="_path_to_service.key"Option B: Pass as command-line arguments
airctl configure {other_flags} \
--user-cert-path _path_to_service.crt \
--user-key-path _path_to_service.keyAfter you run the configuration command, verify that the certificate paths appear in the configuration file.
Check /opt/pf9/airctl/conf/airctl-config.yaml:
...
user_cert_path: _path_to_service.crt
user_key_path: _path_to_service.key
...Expected outcome: The configuration file contains your specified certificate paths.
If you have an existing PCD deployment, you can replace the current certificates using the airctl renew-certs command.
Prerequisites
You have an existing PCD deployment
You have the new certificate and key files ready
You have access to the configuration file at /opt/pf9/airctl/conf/airctl-config.yaml
Set the new certificate paths using one of these methods:
Export environment variables (as shown in the installation section)
Use the airctl configure command with certificate path arguments
Edit /opt/pf9/airctl/conf/airctl-config.yaml directly
Keep all other configuration fields unchanged.
Important Notes
Ensure that your DU_FQDN environment variable or the duFqdn field in the airctl configuration file matches the domain specified in your certificates.
The user running configuration commands must have read access to the certificate files.
You can switch between custom and self-signed certificates at any time using the airctl renew-certs command.
Was this helpful?
Was this helpful?
certPath: _path_to_new_service.crt
certKeyPath: _path_to_new_service.keyairctl renew-certs --config _opt_pf9_airctl_conf_airctl-config.yaml