The key authorization file from the server did not match this challenge

Hello everyone,

My domain is:

I ran this command: sudo certbot --apache

It produced this output:

My web server is (include version): Ubuntu 20.04

The operating system my web server runs on is (include version):Which names would you like to activate HTTPS for?


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for
Enabled Apache rewrite module
Waiting for verification...
Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.


  • The following errors were reported by the server:

    Type: unauthorized
    Detail: The key authorization file from the server did not match
    this challenge

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.40.0

If your site is behind an OVH load balancer, you might need contact their support to figure out how to get this working.

A known issue that has come up on this forum previously is OVH's software interfering with Certbot's ability to obtain a certificate.

Since you are using OVH for DNS as well, you could consider using the Certbot OVH DNS plugin instead of --apache to work around this issue.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.