reown-com / a2

An Asynchronous Apple Push Notification (apns2) Client for Rust
MIT License
146 stars 51 forks source link

Add TLS 1.2 support via configuration #90

Open plv opened 1 month ago

plv commented 1 month ago

Description

N.B.: This PR is combined is meant to be reviewed alongside https://github.com/WalletConnect/a2/pull/91

This PR adds a TLS 1.2 override to ClientConfig. This is useful in cases where we want to use a signing scheme that is not supported by TLS 1.3.

Resolves # (issue) N/A

How Has This Been Tested?

I've pulled my fork into our own internal codebase and tested this by signing using RSA PKCS1v15 signing scheme, something that is NOT supported by TLS 1.3 for client auth. Got push notifications successfully sending to my device!

* Writing a unit test is fairly difficult here, so please let me know if you'd like me to add to examples/certificate_client.rs

Due Dilligence