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 Web Server
  • Search

Hostname with expired SSL certificate

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Hostname with expired SSL certificate
  • Quote

Post by Antoine » Wed Sep 28, 2016 11:48 pm

Hello,
I'm trying to connect to my mail server, but the SSL certificate has expired:

Image

How can I fix this?

Thank you!
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Thu Sep 29, 2016 9:12 am

XoXiLhJ0mn wrote:Create a new SSL certificate locally on your server. Whats your problem?
How can I do that?
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Thu Sep 29, 2016 11:26 pm

XoXiLhJ0mn wrote:Hi,

Either you use some online tools, which may be easier to create or use a web interface on your server generated by scripts like webmin or create in shell. Most likely, you will have problems to make one in shell commands.

If you use webmin, you could create very easily as many SSL certificates online from your server and even use many other commands it makes available for a server management.

Alternatively, you could use the default domain certificate that vesta generates online for that particular domain.

Go in the web panel of Vesta. Click on the domain menu. In there, you will see a checkbox for SSL. Check it. It will offer to enter some details. Provide them. Then it will create a certificate.

Once you have a certificate and key, you could make one pem data from it.

You could also check in /etc/exim/domain/. Inside that directory (link) there are pem certificates readily available.

So you need to find out first which format you want the data, *.crt or *.pem and find or generate it.

Need more info or help, or understood? If you did not understand, then I could explain step by step.
Hello,
How can I do that?

Sorry for the inconvenience.
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Fri Sep 30, 2016 8:38 am

XoXiLhJ0mn wrote:Hi,

No problem. Tell me, for which service do you want to use the certificate, Exim, Apache, Nginx, MariaDB, etc. Then I will give you a custom solution.
Hello,
Thank you for your help. I generated the certificate but, when I try to connect to my mail server with Exim4, the certificate is expired. How can I install the certificate?

Kind regards.
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Tue Oct 04, 2016 8:44 pm

Hello,
I have tried to do this, but the certificate remains invalid. I have changed the route you've told me, creating a new one, but the system download the SSL certificate hostname and tells me it's expired. What I can do?

Thank you very much!
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Wed Oct 05, 2016 8:19 pm

XoXiLhJ0mn wrote:Hi,

What problem do you have, wrong DKIM or wrong certificate? My solution above relates to the dkim.pem. It appears that I got confused, while answering to your message hurriedly unconcentrated, as I had just answered the message of anathor poster on dkim. Excuse me.

Check the location/path of parameter tls_certificate and tls_privatekey in the exim.conf. If the certificate got expired, then you need to exchange the certificate.crt and certificate.key for that crt in the directory in there. You could also change the path of these files to any other path, when exim could find an existing valid certificate.

You also need to have in the exim.conf:

Code: Select all

add_environment = <; PATH=/bin:/usr/bin
keep_environment =
openssl_options = +no_sslv2 +no_sslv3
tls_advertise_hosts = *
tls_certificate = /usr/local/vesta/ssl/certificate.crt   # or any other valid certificate in any directory
tls_privatekey = /usr/local/vesta/ssl/certificate.key   # or any other valid key in any directory for this valid certificate
I now believe that the default certificate in above dir got expired.

But if the error is based on dkim, we need to deepen into it differently.
Hello,
I checked the settings and changed exim certificates and error basis remains the same. It seems that the server is extracting certificates from an unknown location, although not find the route with them. What I can do?

Thank you very much!
Top

Antoine
Posts: 34
Joined: Wed Feb 24, 2016 9:11 pm

Re: Hostname with expired SSL certificate
  • Quote

Post by Antoine » Thu Oct 06, 2016 9:32 am

Hello,
Yes, I have renewed the certificates specified in Exim, but the one who sent me when I want to configure the email account is indicated as the hostname and, therefore expired.

I have generated new certificates and I put on the routes indicated in exim.conf, getting the same problem. I checked the certificates using SSH and email client, Thunderbird.

Of course, I'll send the domain name via private message, along with the credentials, so you can access.

Thank you very much!
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Web Server”



  • 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