Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > Suggestions > Topic : letsencrypt Free SSL direct implementation



Threaded Mode | Print  

 letsencrypt Free SSL direct implementation (3 Replies, Read 16115 times)
office@neoit.ro
Group: Member
Post Group: Newbie
Posts: 7
Status:
Hello guys,
Of course, using Virtualizor for a very long time :) , no remarks, only good words ... but from time to time some suggestions :

Adding letsencrypt SSL free certificates directly in the install.sh  script .. i have checked it, it is very simple, and for sure implementing the rules to install also letsencrypt ssl certificate for php would be very simple .. tomorow i will test myself adding the commands to the install script, i am playing right now with a new server , after trying proxmox (very dissapointed about not recognising RAID 10 hard drives ...  and destroyng actually the RAID ) .. and of course came back to virtualizor ...

so:  this is the link to the tutorial, teste myself on varoius VPS servers and Standalone platforms, works like a charm.


http://www.tecmint.com/install-lets-encrypt-ssl-certificate-to-secure-apache-on-rhel-centos/

i will try tomorow to insert the lines into the install.sh and i will come back with an answer .. for sure i will make it work ,  and the first login, if the hostname is set corectly and working , for sure the first login will be done directly with valid SSL certificate :)

in php files, of course i do not have access, but for sure i could update a little the install script that i have for quick insertion in cpanel of Letsencrypt SSL certificates, to do something similar to virtualizor :)

will be back soon with updates.

have a great evening.
IP: --   

letsencrypt Free SSL direct implementation
asim_shaikh
Group: Member
Post Group: Elite Member
Posts: 381
Status:
Hi,

Please let us know once you have finised your tests.
Also we are improving our LetsEncrypt feature to be able to work Standalone from CLI as well, along with other improvements.

If you need any assistance from us then please let us know.




-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com
IP: --   

letsencrypt Free SSL direct implementation
office@neoit.ro
Group: Member
Post Group: Newbie
Posts: 7
Status:
what is the shortcut in the install script  for hostname ?? 

for IP is  $ip 
is something set for hostname ??

in the command for adding SSL  for the hostname ....

/usr/local/letsencrypt/letsencrypt-auto --apache -d yourdomain.com

can be set something like :    $hostname ??

at the moment i am testing with my own hostname set manually ,.. but i want to automate this function, just to mke sure everything is ok ....

and i am also struggleing with setting up the LVM s for XEN virtualization i hope this time i have set it right :)
IP: --   

letsencrypt Free SSL direct implementation
office@neoit.ro
Group: Member
Post Group: Newbie
Posts: 7
Status:
so far ..... i could not go further because i have the server on an internal network ... certification failure .... no hostname resolv by the letsencrypt servers :) ..  will continue tomorow live with an external IP address ... but so far looks ok on Centos ...

the next steps to set the SSL certifictes in  nginx are here :

http://idroot.net/tutorials/how-to-install-letsencrypt-ssl-with-nginx-on-centos-6/

http://idroot.net/tutorials/how-to-install-letsencrypt-with-nginx-on-ubuntu-15-04/


i will finish these days the entire install together with the install script updated , and i will upload it here ...




echo "-------------------------------------"
echo " Installation Completed "
echo "-------------------------------------"
echo "Congratulations, Virtualizor has been successfully installed"
echo " "
/usr/local/emps/bin/php -r 'define("VIRTUALIZOR", 1); include("/usr/local/virtualizor/universal.php"); echo "API KEY : ".$globals["key"]."\nAPI Password : ".$globals["pass"];'
echo " "
echo " "
echo "Installing Letsencrypt SSL Certificate for the desired hostname"
echo "After finalizing the installation, reboot the server, and you can connect to Virtualizor panel with https://yourdomain.com:4085 in secure mode"
echo "Installing some additional packages required for Letsencrypt to work corectly."
echo "Please fill up the required fields when the interactive installation will start:"
if [ "$OS" = redhat  ] ; then
    yum -y install epel-release
    yum -y install git python-tools python-pip
else
    apt-get install -y git
fi
git clone https://github.com/letsencrypt/letsencrypt /usr/local/letsencrypt
sleep 10
echo "The final instalation will begin in 10 seconds. Please make sure you copy the next lines to set the SSL certificate corectly:"
echo "Step 1: Enter Email Address:  insert a valid e-mail address. Eg.:  myemail@mydomain.com"
echo "Step 2: Agree with the terms and conditions"


echo "Step 3:          to be updated next days "


/usr/local/letsencrypt/letsencrypt-auto certonly -a standalone -d my.hostname.com
sleep 10

to be updated from the 2 tutorials in the upper lines :  certificates copy into /usr/local/emps/nginx/ssl/ folder,  inserting in nginx.conf  the new certificate locations instead of the initial ones created by Virtualizor,  restarting nginx,

inserting in crontab the lines for autoupdate monthly of the certificates.

echo "Virtualizor Admin panel and Letsencrypt SSL certificates installed"

echo "You can login to the Virtualizor Admin Panel"
echo "using your ROOT details at the following URL :"
echo "https://$ip:4085/"


Please be patient with me, i am also administrating some live servers, together with a big family :) )

Have a great wekend.
I will come back with updates as soon as possible.

in the meantime, for the ones that want to give a hand, you could help me by replying here with additional queries for the script:

how to edit the lines containing the virtualizor certificates in nginx.conf,  meaning how to replace them .. or eventually how to delete them and insert the new ones ...


And of course , how to set the  server`s hostname in the script to simplify the procedure for the new comers.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 18, 2024, 6:05 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.036