Daniel-Doggy
Verified User
- Joined
- Nov 16, 2019
- Messages
- 452
Hello everyone,
I am trying to configure the MYSQL server to use the hostname's SSL Certificate (Let's Encrypt) instead of the self signed certificate it generated itself.
The issue is that the MYSQL user/group does not have access to the /usr/local/directadmin/conf/ folder and the cert files.
And thus cannot load them in on start.
My idea is, as a workaround:
Create a custom script on ssl_save_post.sh
Copy the files with the script to a folder where the mysql user/group does have access to it.
But the docs leave me with more questions then anwsers. (https://docs.directadmin.com/developer/hooks/ssl_letsencrypt.html)
My questions:
1. How to check that the domain matches the hostname.
2. My Lets's Encrypt Certificate was create with /usr/local/directadmin/scripts/letsencrypt.sh request_single hostname 4096 but will this still allow it to trigger the ssl_save_post.sh?
3. Is this script called after all the certificates files are saved/updated? (So that I can just add a cp in my script.)
4. Any better ways to do this?
Thanks in advance,
realcryptonight
I am trying to configure the MYSQL server to use the hostname's SSL Certificate (Let's Encrypt) instead of the self signed certificate it generated itself.
The issue is that the MYSQL user/group does not have access to the /usr/local/directadmin/conf/ folder and the cert files.
And thus cannot load them in on start.
My idea is, as a workaround:
Create a custom script on ssl_save_post.sh
Copy the files with the script to a folder where the mysql user/group does have access to it.
But the docs leave me with more questions then anwsers. (https://docs.directadmin.com/developer/hooks/ssl_letsencrypt.html)
My questions:
1. How to check that the domain matches the hostname.
2. My Lets's Encrypt Certificate was create with /usr/local/directadmin/scripts/letsencrypt.sh request_single hostname 4096 but will this still allow it to trigger the ssl_save_post.sh?
3. Is this script called after all the certificates files are saved/updated? (So that I can just add a cp in my script.)
4. Any better ways to do this?
Thanks in advance,
realcryptonight