Connection over tls1.2

Post Reply
realbitt
Posts: 4
Joined: Wed Aug 21, 2013 8:35 am

Connection over tls1.2

Post by realbitt » Sun May 02, 2021 8:26 pm

we trying to connect with our provider gateway with tls1.2 as they,but with no luck as code below


client.EnabledSslProtocols = SslProtocols.Tls12;
client.ClientCertificates.Add(new X509Certificate2("client_certificate.p12", "cert_password"));

when i set EnabledSslProtocols to none every thing works great.

what is the problem and how can i catch the actual connection error message ?

lib version : 2.7.0.1866

Br
Mohammed
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Connection over tls1.2

Post by alt » Mon May 03, 2021 9:28 am

Hi,

It looks like you connect to non-SSL port of provider. Please find out on which port the SSL-Connection is supported.

The error you can catch with logging interface of the library
https://docs.inetlab.com/smpp/v2/articles/tracing.html
realbitt
Posts: 4
Joined: Wed Aug 21, 2013 8:35 am

Re: Connection over tls1.2

Post by realbitt » Tue May 04, 2021 10:58 am

Thanks, it's working fine now.
Post Reply