Tazmanian79
Verified User
- Joined
- Jul 24, 2010
- Messages
- 106
Just need a little information before I try to install a SSL certificate for my hostname.
This is my situation (CentOs 7 all latest versions)
(www.)domain.com is used for website and has SSL by Gandi
(www.)domain2.com is used for website and has SSL by Gandi
(www.)domain3.com is used for website and has SSL by Letsencrypt
But now I want also an SSL for my hostname srv.domain.com (same domain as my main website that has SSL by Gandi)
I should follow these instructions: https://help.directadmin.com/item.php?id=629
1.
But then there are these instructions:
cd /usr/local/directadmin/conf
perl -pi -e 's/SSL=0/SSL=1/' directadmin.conf
---> This is to setup Directadmin over SSL, but I don't want this (yet) so I can just ignore this?
echo "carootcert=/usr/local/directadmin/conf/carootcert.pem" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
echo "force_hostname=your.hostname.com" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
echo "ssl_redirect_host=your.hostname.com" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
service directadmin restart
Thanks for your advice/info.
This is my situation (CentOs 7 all latest versions)
(www.)domain.com is used for website and has SSL by Gandi
(www.)domain2.com is used for website and has SSL by Gandi
(www.)domain3.com is used for website and has SSL by Letsencrypt
But now I want also an SSL for my hostname srv.domain.com (same domain as my main website that has SSL by Gandi)
I should follow these instructions: https://help.directadmin.com/item.php?id=629
1.
Code:
cd /usr/local/directadmin/scripts
./letsencrypt.sh request_single srv.domain.com 4096
But then there are these instructions:
cd /usr/local/directadmin/conf
perl -pi -e 's/SSL=0/SSL=1/' directadmin.conf
---> This is to setup Directadmin over SSL, but I don't want this (yet) so I can just ignore this?
echo "carootcert=/usr/local/directadmin/conf/carootcert.pem" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
echo "force_hostname=your.hostname.com" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
echo "ssl_redirect_host=your.hostname.com" >> directadmin.conf
---> What does this do? Is this necessary if I don't do the previous step?
service directadmin restart
Thanks for your advice/info.