• [ Moderator note: moved to Fixing WordPress. ]

    Hi team,

    I have one site with is SSL verified and I want to get that feeds of the website to other no-SSL verified site.

    That showing me “WP HTTP Error: cURL error 51: SSL: no alternative certificate subject name matches target host name”

    I am using function ‘wp_widget_rss_output’ but there is no option to filter url call with SSL or no-SSL.’

    Let me know what I am doing wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you please share your code?

    also, have you tried adding these curl settings?

    
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    
    Thread Starter Alkesh Miyani

    (@alkesh7)

    Hi @gnoric,

    Thanks for trying to reply me back.

    But, I am asking query for default WordPress functions.

    Let me share my code here. So, you may get an idea to resolve the issue.

    if (!function_exists('solwin_dashboard_widget_news')) {
    
    	function solwin_dashboard_widget_news() {
    		echo '<div class="rss-widget">'
    		. '<div class="solwin-news"><p><strong>' . __('Solwin Infotech News', SOLWIN_TEXTDOMAIN) . '</strong></p>';
    		wp_widget_rss_output(array(
    			'url' => esc_url('https://www.solwininfotech.com/feed/'),
    			'title' => __('News From Solwin Infotech', SOLWIN_TEXTDOMAIN),
    			'items' => 5,
    			'show_summary' => 0,
    			'show_author' => 0,
    			'show_date' => 1
    		));
    		echo '</div></div>';
    	}
    
    }

    Please check code again and find the point as I called one feed URL and that contain https. It means that SSL installed URL call.

    But, when site haven’t installed any SSL certificate with the website then this call not working correctly.

    It showing me error like below.

    RSS Error: WP HTTP Error: cURL error 51: SSL: no alternative certificate subject name matches target host name ‘www.solwininfotech.com’

    Let me know if you need more details from my side.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SSL false with ‘wp_widget_rss_output’ function’ is closed to new replies.