SSL Pinning
SSL Pinning ensures secure communication by allowing only trusted SSL certificates, which is critical for apps handling sensitive user data. To use this feature, integrate Android SDK v3.15.0 or above.
Configuring SSL Pinning
Specify the trusted SSL certificate hash in
NetmeraConfiguration.Builder
using thesslPinKeys
method.
Single SSL Pin
Use this code to pin a single SSL certificate:
Multiple SSL Pins
Use this code to pin multiple SSL certificates for environments where multiple certificates are trusted (e.g., during certificate transitions or backups):
Handling SSL Pinning Errors
If the server's SSL certificate doesn't match the pinned keys, the app will log an error and terminate the connection.
Error Log for Invalid SSL Pins
If Improper SSL Pinning Is Configured
Last updated
Was this helpful?