We are using letsencrypt to generate free SSL certificates. Unfortunately, the supplied scripts only support CentOS 6 on x86_64. (SAM is only 32 bit). In order to work around this I have set up a 64 bit VM for the sole purpose of renewing the SSL certificate.
vi /etc/httpd/conf/httpd.conf and unhash the last 7 lines:
<Virtualhost *:80> ServerAdmin support@crecom.com.au DocumentRoot /var/www/html/shopifytest/ ServerName shopify.creativecomputing.com.au ErrorLog logs/shopify-error_log CustomLog logs/shopify-access_log common </VirtualHost>Save the file and run:
service httpd restart
- ssh as root to sam64 (same password as root on sam)
run:
bash renewshopify.sh
- follow the prompts. It should ask you if you want to renew. Say "Y".
- When the prompt returns, you can log out of sam64
Go back to sam. Re hash-out the last 7 lines
#<Virtualhost *:80> # ServerAdmin support@crecom.com.au # DocumentRoot /var/www/html/shopifytest/ # ServerName shopify.creativecomputing.com.au # ErrorLog logs/shopify-error_log # CustomLog logs/shopify-access_log common #</VirtualHost>
Save the file and run:
service httpd restart
- The SSL certificate should be renewed.
