• Resolved sjoshi

    (@sjoshi)


    Hi,

    I have installed WP-Cassify plugin and configured my CAS-Server url. But after entering Username and Passowrd in my CAS authenticaltion screen and after that the below error is generated in browser screen.

    Error [ wp_cassify_do_ssl_web_request ] : SSL certificate problem: self signed certificate

    Please help me sort out this issue. I struggled a lot to fix this issue since two days.

    https://wordpress.org/plugins/wp-cassify/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, can you try to replace turn ‘ssl_verify’ to ‘false’ in wp_cassify_utils.php, in wp_cassify_do_ssl_web_request function :
    ‘sslverify’ => false

    Keep me informed if it solve the problem.

    If it’s not work, reinstall the previous version 1.5.6, and then i publish a fix quickly.

    Thread Starter sjoshi

    (@sjoshi)

    Sorry dear, above solution suggested by you also reports the same issue. By changing ‘sslverify’ to ‘false’ doesn’t solve problem.

    Ok, patch the function like this while new version of plugin are being released :

    public static function wp_cassify_do_ssl_web_request( $url, $ssl_cipher ) {

    if (! function_exists ( ‘curl_init’ ) ) {
    die( ‘Please install php cURL library !’);
    }

    $ch = curl_init();

    curl_setopt( $ch, CURLOPT_HEADER, false );
    curl_setopt( $ch, CURLOPT_URL, $url ) ;
    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
    curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 1);

    //curl_setopt( $ch, CURLOPT_USERAGENT,’Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13′ );
    curl_setopt( $ch, CURLOPT_SSLVERSION, 0 );

    if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
    curl_setopt( $ch, CURLOPT_VERBOSE, true );
    }

    $response = curl_exec( $ch );

    if( curl_errno( $ch ) ) {
    if ( ( defined( ‘WP_DEBUG’ ) ) && ( WP_DEBUG == true ) ) {
    $info = curl_getinfo( $ch );
    die( ‘Curl error: ‘ . curl_error( $ch ) . print_r( $info, TRUE ) );
    }
    else {
    die( ‘Curl error: active WP_DEBUG in wp-config.php’);
    }
    }

    curl_close( $ch );

    return $response;
    }

    Please update to new version 1.5.8 which solve the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error after entering username and password in CAS login screen.’ is closed to new replies.