Let's Encrypt: Always regenerate a new account-key, if staging

This commit is contained in:
Daniel Schmitz
2016-03-24 01:26:57 +08:00
parent 30bd81064c
commit 3405c7e313

View File

@@ -50,7 +50,7 @@ class lescript
{
// Let's see if we have the private accountkey
$this->accountKey = $certrow['leprivatekey'];
if (!$this->accountKey || $this->accountKey == 'unset') {
if (!$this->accountKey || $this->accountKey == 'unset' || Settings::Get('system.letsencryptca') != 'production') {
// generate and save new private key for account
// ---------------------------------------------