Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

SSL certificate and updates

General questions about VestaCP
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
purwa
Posts: 3
Joined: Wed Jun 18, 2014 6:18 am

SSL certificate and updates
  • Quote

Post by purwa » Sun Jun 22, 2014 1:53 pm

hello everyone.
I just installing a comodo certificate by changing certificate.key and certificate.crt in

Code: Select all

/usr/local/vesta/ssl/
my question is:
1. is this the correct way of doing it?
2. if I'm updating vesta, will my changes will be overwritten?

thank you!
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: SSL certificate and updates
  • Quote

Post by ivanh » Sun Jun 22, 2014 4:01 pm

1) yep.

2) It won't be over written

PS, don't forget to service vesta restart.
Top

purwa
Posts: 3
Joined: Wed Jun 18, 2014 6:18 am

Re: SSL certificate and updates
  • Quote

Post by purwa » Tue Jun 24, 2014 10:17 am

ivanh wrote:1) yep.

2) It won't be over written

PS, don't forget to service vesta restart.
yes, I restarted the services, works like a charm!

#EDIT
its only works on VESTACP login (https://mydomain.com:8083), I tried to install the cert to my main domain but got various error, tried to solve it by rearrange the crt (described on this thread: viewtopic.php?f=11&t=4896) but none of those works, so I tried to make a new snginx.conf template and changing the .pem to .crt and this resulting the nginx failed to start:

Code: Select all

nginx: [emerg] SSL_CTX_use_PrivateKey_file("/home/admin/conf/web/ssl.mydomain.com.key") failed (SSL: error:0906406D:PEM routines:PEM_def_callback:problems getting password error:0906A068:PEM routines:PEM_do_header:bad password read error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
nginx: configuration file /etc/nginx/nginx.conf test failed
any clue how to solve this?

thanks.

##EDIT
this solve the problem:
http://stackoverflow.com/questions/1810 ... -nginx-ssl

remove the passphrase:

Code: Select all

openssl rsa -in original.key -out unencripted.key
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password