ssl Engine
Configures the SSL engine for the HttpClientEngineConfig. This function sets a custom trust manager for SSL pinning if the engine is CIOEngineConfig.
// This is a simplified example. In a real application, you would integrate this
// with your ShieldCert SDK setup.
val client = HttpClient(CIO) {
engine {
// Apply the SSL pinning configuration
sslEngine()
}
}
// Now the 'client' can be used to make HTTPS requests
// and they will be validated against the pinned certificates.Content copied to clipboard