Merge pull request #341 from bashgeek/letsencrypt_stagingfix

Let's Encrypt: Always regenerate a new account-key, if staging
This commit is contained in:
Michael Kaufmann
2016-03-23 18:40:54 +01:00

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
// ---------------------------------------------