disable_ssl_verification ( $ssl_verification )

Disables the verification of the SSL Certificate Authority. Doing so can enable an attacker to carry out a man-in-the-middle attack.

https://secure.wikimedia.org/wikipedia/en/wiki/Man-in-the-middle_attack

This method will throw a user warning when invoked, which can be hidden by changing your error_reporting() settings.

Access

public

Parameters

Parameter

Type

Required

Description

$ssl_verification

Optional

Returns

Type

Description

$this

A reference to the current instance.

Source

Method defined in sdk.class.php | Toggle source view (6 lines) | View on GitHub

public function disable_ssl_verification($ssl_verification = false)
{
    trigger_error('Disabling the verification of SSL certificates can lead to man-in-the-middle attacks. It is potentially unsafe and highly discouraged.', E_USER_WARNING);
    $this->ssl_verification = $ssl_verification;
    return $this;
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback