opentelecoms-org / jsmpp

SMPP implemented in Java
Apache License 2.0
230 stars 158 forks source link

Secured SMPP implementation #177

Open dilip-md opened 1 year ago

dilip-md commented 1 year ago

Hi Team

We are using SMPP V5 (JSMPP 2.3.10) for sending SMSs to SMSC. Currently we are using Non-TLS default port 2775. We are looking to move to TLS flow. Just wanted to understand if we have different way of Binding in case of TLS binding compared to NON-TLS ??

I mean currently we are using connectAndBind with host port and all.... Is the implementation going to remain same for TLS binding too ?? like just replacing the NON-TLS port 2775 to TLS port ??

pmoerenhout commented 1 year ago

Please check the OpenAndBindExample code. There a factory is used to deliver the right connection:

try (SMPPSession session = useSsl ? new SMPPSession(new TrustStoreSSLSocketConnectionFactory()) : new SMPPSession()) {