Skip to content

Commit e88a076

Browse files
author
Stanislav Humplik
committed
Merge branch 'master' of https://github.com/analogic/lescript
2 parents a2d46b6 + b5dc392 commit e88a076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lescript.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function signDomains(array $domains)
148148
$domainPath = $this->getDomainPath(reset($domains));
149149

150150
// generate private key for domain if not exist
151-
if(!is_dir($domainPath)) {
151+
if(!is_dir($domainPath) || !is_file($domainPath.'/private.pem')) {
152152
$this->generateKey($domainPath);
153153
}
154154

0 commit comments

Comments
 (0)