You are here

function Provision_Service_Certificate_SelfSigned::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/self_signed/drush/Provision/Service/Certificate/SelfSigned.php, line 79

Class

Provision_Service_Certificate_SelfSigned
A SelfSigned 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}/openssl.key";
  $certs['https_cert_key'] = "{$target_path}/openssl.key";
  $certs['https_cert_source'] = "{$source_path}/openssl.crt";
  $certs['https_cert'] = "{$target_path}/openssl.crt";
  return $certs;
}