Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When ssl-enabled site gets disabled back to plain http only, its SSL receipt file should be removed also from /var/aegir/config/server_master/ssl.d directory and not only from /var/aegir/config/server_master/ssl.d/domain.com directory, or it will be impossible to enable SSL on another domain on the same IP.
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedIt still doesn't work.
Steps to reproduce:
1. Enable SSL on any site and choose "Generate a new encryption key".
2. After the site is verified and SSL works, disable SSL for this site.
3. Edit another site and choose existing key created for the first site - it will work.
4. Edit that second site again, but choose "Generate a new encryption key" - it fails on site verify.
5. Now manually remove the receipt file - rm -f /var/aegir/config/server_master/ssl.d/*.receipt
6. Edit the site again and choose its created already key - it verifies OK and https works.
Comment #2
adrian CreditAttribution: adrian commentedok. i found the issue, i think.
we don't have an ssl key property when we have disabled the ssl.
and it's trying to use $this->ssl_key to find the right file to delete.
I actually did account for it, but didn't change some of the $this->ssl_key references to the more
flexible $ssl_key value.
needs to be tested, is in master now.
Comment #3
omega8cc CreditAttribution: omega8cc commentedTested and works now - fixed in head. Thanks!