sveawebpay / php-integration

SDK for Sveas payment methods (standalone and Svea Checkout)
Other
15 stars 19 forks source link

Isn't it a security risk to disable SSL peer validations? #95

Open timint opened 3 years ago

timint commented 3 years ago

Isn't it a security risk to disable SSL peer verifying? As we are making money transactions I think this one is critical. This allows for man in the middle attacks.

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

https://github.com/sveawebpay/php-integration/blob/master/src/HostedService/HostedRequest.php#L61