Well, we need a new key if we don't havre one, not if we already have one

Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
Florian Aders
2016-02-01 20:58:49 +01:00
parent ba1181e8ff
commit efc5f37850
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ class lescript
// ----------------------
// generate private key for domain if not exist
if(!is_null($domainkey)) {
if(empty($domainkey)) {
$keys = $this->generateKey();
$domainkey = $keys['private'];
}