I use a master-slave Aegir architecture.
When I create a SSL site on the hostmaster everything is fine.
But when I create it on a slave server I get this warning:
touch(): Unable to create file /var/aegir/config/server_master/ssl.d/test.dev/test.dev.receipt because No such file or directory ssl.php:169
Extra info:
On the slave I have the openssl.crt & openssl.key but no test.dev.receipt for the /var/aegir/config/server_slave/ssl.d/test.dev.
On the hostmaster I have the openssl.crt, openssl.key & hostmaster.dev.receipt for the /var/aegir/config/server_master/ssl.d/hostmaster.dev.
Also on the hostmaster I have the openssl.crt & openssl.key but no test.dev.receipt for the /var/aegir/config/server_slave/ssl.d/test.dev.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | ssl_on_slave_server-2448809-6.patch | 842 bytes | millaraj |
Comments
Comment #1
tvl commentedComment #2
helmo commentedTagging.
Renaming server-client to master-slave for consistency.
Comment #3
helmo commentedSee Provision_Config_Http_Ssl_Site:write() from http/Provision/Config/Http/Ssl/Site.php
That would explain the 'missing' receipt file on the slave.
Comment #4
millaraj commentedConfirming for 6.x-2.4. Receipts not being created on either the hostmaster or slave servers. Directories and keys appear to be generated without issue.
Comment #5
millaraj commentedThere's a bug in provision/http/Provision/Service/http/ssl.php
$path = $site->platform->server->http_ssld_path . "/" . $ssl_key . "/" . $site->uri . ".receipt";
should be
$path = $site->data[server]->http_ssld_path . "/" . $ssl_key . "/" . $site->uri . ".receipt";
Comment #6
millaraj commentedPatch against latest 6.x-2.x branch.
Comment #7
millaraj commentedComment #8
pauleb commentedThe patch works great for me. Thanks!
Comment #10
jon pughLooks great, thanks millaraj!!
Committed and pushed to 6.x-2.x and 7.x-3.x
Comment #13
gboudrias commentedComment #14
avpaderno