Page 1 of 1

[RESOLVED] Official HTTPS certificate on the server: Waptconsole error

Published: September 3, 2019 - 6:21 PM
by frferrer
Good morning,

After installing WAPT (Enterprise version) with a self-signed certificate, I wanted to equip the server with a recognized certificate.
Following the documentation, I installed a certificate and forced the redirection from http to https.
From a browser, I can see that the certificate is correctly installed.

When I log in with the console, if I check the box: "Verify the server's HTTPS certificate", I get the following (partial) error message:

Picture

2 questions:
  • Where can I view the full error message? (There's nothing in the client machine's log files.)
  • What is missing for the console to correctly verify this certificate?
THANKS

Re: Official HTTPS certificate on the server: Waptconsole error

Published: September 3, 2019 - 7:07 PM
by htouvet
You can verify that you are providing a complete certificate chain on the server side (especially if there are intermediate authorities).
If your certificate is from a third-party authority, set `verify_cert=1` in the `wapconsole.ini` and `wapt-get.ini` files. Wapt will verify the certificate chain using a bundle provided by the Python module "certifi" ( https://github.com/certifi/python-certifi ).
Currently (wapt-1.7.4-6161), this bundle is at version 2019.3.9.

[Resolved] Re: Official HTTPS certificate on the server: Waptconsole error

Published: September 3, 2019 - 9:14 PM
by frferrer
Good evening,

the error was in the cert.pem file (on the server) which only contained the server certificate without the certificate authority's certificate.
Changing the key verif_cert=1 in waptconsole.ini fixed it.

Thank you