554 Access denied: Amazon SES no longer supports TLS 1.0 and TLS 1.1 connections (Prestashop force TLS 1.2 connection)

how to disable 1.0 and 1.1

go to

prestshopinstalledfolder/vendor/symfony/symfony/src/Symfony/Component/Ldap/LdapClient.php

line 88 (comment out line  94 return stream_socket_enable......

 

put a new code as below

 

 
public function startTLS()
{
// STREAM_CRYPTO_METHOD_TLS_CLIENT only allow tls1.0 connections (some php versions)
// To support modern tls we allow explicit tls1.0, tls1.1, tls1.2
// Ssl3 and older are not allowed because they are vulnerable
// @TODO make tls arguments configurable
// return stream_socket_enable_crypto($this->stream, true, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
return stream_socket_enable_crypto($this->stream, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
}
 

 

If it doesn't work or you have older prestashop version, you can try below

prestashopinstalledfolder/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php

line 92

public function startTLS()
{
// return stream_socket_enable_crypto($this->_stream, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
return stream_socket_enable_crypto($this->_stream, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
}