function Provision_Service_Certificate_LetsEncrypt::get_certificate_paths in Aegir HTTPS 7.3
Retrieve an array containing source and target paths for this https_key.
Overrides Provision_Service_Certificate::get_certificate_paths
File
- submodules/
letsencrypt/ drush/ Provision/ Service/ Certificate/ LetsEncrypt.php, line 79
Class
- Provision_Service_Certificate_LetsEncrypt
- A LetsEncrypt implementation of the Certificate service type.
Code
function get_certificate_paths($https_key) {
$source_path = $this
->get_source_path($https_key);
$target_path = "{$this->server->http_ssld_path}/{$https_key}";
$certs = array();
$certs['https_cert_key_source'] = "{$source_path}/privkey.pem";
$certs['https_cert_key'] = "{$target_path}/openssl.key";
$certs['https_cert_source'] = "{$source_path}/fullchain.pem";
$certs['https_cert'] = "{$target_path}/openssl.crt";
return $certs;
}