Browse Source

add https prefix to getCertificate method

pull/63/head
Nicolas Roman 1 year ago
parent
commit
43318dc09a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/letsencrypt.php

+ 3
- 3
lib/letsencrypt.php View File

@ -123,13 +123,13 @@ class LetsEncrypt
/**
* Retrieve the SSL certificate from the URL
* @param string $url
* @param string $domain
* @return Array|false $cont list of parameters of the certificate, or false
*/
public function getCertificate($url)
public function getCertificate($domain)
{
$stream = stream_context_create(array("ssl" => array("capture_peer_cert" => true)));
$read = fopen($url, "rb", false, $stream);
$read = fopen("https://" . $domain , "rb", false, $stream);
$cont = stream_context_get_params($read);
return $cont;


Loading…
Cancel
Save