Advertisement
daymobrew

WordPress: Bypass SSL verification

Apr 6th, 2016
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Skip SSL Verify
  4. Plugin URI: http://www.damiencarbery.com
  5. Description: Skip SSL verify in curl downloads - fixes: Download failed. error:0D0890A1:asn1 encoding routines:func(137):reason(161).
  6. Author: Damien Carbery
  7. Version: 0.1
  8.  
  9. $Id:  $
  10. */
  11.  
  12. function ssv_skip_ssl_verify($ssl_verify) {
  13.     return false;
  14. }
  15. add_filter('https_ssl_verify', 'ssv_skip_ssl_verify');
  16. add_filter('https_local_ssl_verify', 'ssv_skip_ssl_verify');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement