OpenDataServices / opendataservices-deploy

Repository used for deploying software to Open Data Services Co-operative's servers.
MIT License
5 stars 1 forks source link

WIP: Try and fix SSL Cert Issues #76

Closed odscjames closed 5 years ago

odscjames commented 5 years ago

When you run certonly mode on a server that has never had SSL certs before, it doesn't work.

You have to manually reload apache and then run it again for it to to work.

I don't know why.

In this pull request, I have attempted to correct the ordering in the salt files but it still doesn't work.

I wonder if it's a timing problem; it seems to try and get the cert very soon after reloading apache. Do we need a delay before getting the cert?

However, sometimes I also seem to have manually reload apache myself before it works. Could it be the reload in the salt script isn't doing a proper reload?

odscjames commented 5 years ago

Fixed in https://github.com/OpenDataServices/opendataservices-deploy/commit/89fb3d0fed2c6c6f08549c3984b8981c67d25868

(@idlemoor saw in a branch first)