SSLPinConfig class

SSL Pinning Configuration for Base URLs

This file contains the public key hashes for SSL certificate pinning. Since all API calls go through Dio with baseURL, we only need to pin the base domains.

IMPORTANT:

  • These are SHA-256 hashes of the public keys, not the certificates themselves
  • Always maintain backup pins for certificate rotation
  • Update these hashes before certificate expiry (60 days recommended)

To get the SHA-256 hash of a domain's public key:

openssl s_client -servername DOMAIN -connect DOMAIN:443 | \
  openssl x509 -pubkey -noout | \
  openssl pkey -pubin -outform der | \
  openssl dgst -sha256 -binary | \
  openssl enc -base64

SSL Pin Configuration for a domain

Constructors

SSLPinConfig({required String domain, required List<String> pins})
const

Properties

domain String
final
hashCode int
The hash code for this object.
no setterinherited
pins List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited