Title: Google Fonts: http_request_failed &#8211; cURL error 51
Last modified: October 16, 2020

---

# Google Fonts: http_request_failed – cURL error 51

 *  Resolved [jezthomp](https://wordpress.org/support/users/jezthomp/)
 * (@jezthomp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/google-fonts-http_request_failed-curl-error-51/)
 * I am enqueuing my fonts like so…
 *     ```
       wp_enqueue_style( 'google-fonts', 'https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap', false ); 
       ```
   
 * However, when i go to OMGF and save changes i get the following error…?
 * `OMGF encountered an error while downloading Google Fonts: http_request_failed-
   cURL error 51: SSL: no alternative certificate subject name matches target host
   name 'my-site.co.uk'`
 * Te site currently doesn’t have an SSL, is that a requirement for it to work?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/google-fonts-http_request_failed-curl-error-51/#post-13544337)
 * Recent version of WordPress verify the SSL certificate by default when making
   get requests.
 * But, you know what, in a next release I’ll force disable it. I guess I underestimated
   how many people this would bother.
 * That being said, it’s pretty easy to generate a Let’s Encrypt certificate isn’t
   it?
 *  Thread Starter [jezthomp](https://wordpress.org/support/users/jezthomp/)
 * (@jezthomp)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/google-fonts-http_request_failed-curl-error-51/#post-13548864)
 * I’m building locally at first on MAMP and unsure whether the client will want
   an SSL at the final point, does that mean cannot use this plugin until there 
   is an SSL associated?
 *  Plugin Author [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * (@daanvandenbergh)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/google-fonts-http_request_failed-curl-error-51/#post-13550544)
 * Hi again,
 * Developers should disable SSL verification in WordPress using a custom plugin.
   I add the following the code in a custom plugin on my local machine:
 *     ```
       function disable_sslverify( $params, $url )
       {
       	$params['sslverify'] = false;
   
       	return $params;
       }
       add_filter( 'http_request_args', 'disable_sslverify', 10, 2 );
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Google Fonts: http_request_failed – cURL error 51’ is closed to new replies.

 * ![](https://ps.w.org/host-webfonts-local/assets/icon-256x256.png?rev=3300821)
 * [OMGF | GDPR/DSGVO Compliant, Faster Google Fonts. Easy.](https://wordpress.org/plugins/host-webfonts-local/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/host-webfonts-local/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/host-webfonts-local/)
 * [Active Topics](https://wordpress.org/support/plugin/host-webfonts-local/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/host-webfonts-local/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/host-webfonts-local/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daan van den Bergh](https://wordpress.org/support/users/daanvandenbergh/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/google-fonts-http_request_failed-curl-error-51/#post-13550544)
 * Status: resolved