Skip to content

Getting Started

GitHub
Terminal window
bun add @capgo/capacitor-ssl-pinning
bunx cap sync
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';

Returns the active native configuration visible to the plugin.

import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
await SSLPinning.getConfiguration();

Static SSL pinning configuration currently visible to the plugin.

export interface SSLPinningConfigurationState {
/**
* Whether at least one certificate is configured for native pinning.
*/
configured: boolean;
/**
* Certificate paths from `capacitor.config.*` relative to the app root.
*/
certs: string[];
/**
* Fully-qualified URLs that should bypass SSL pinning.
*/
excludedDomains: string[];
}

Plugin version payload.

export interface PluginVersionResult {
/**
* Version identifier returned by the platform implementation.
*/
version: string;
}

This page is generated from the plugin’s src/definitions.ts. Re-run the sync when the public API changes upstream.

If you are using Getting Started to plan security and compliance, connect it with Using @capgo/capacitor-ssl-pinning for the native capability in Using @capgo/capacitor-ssl-pinning, Encryption for the implementation detail in Encryption, Compliance for the implementation detail in Compliance, Capgo Security Scanner for the product workflow in Capgo Security Scanner, and Capgo Security for the product workflow in Capgo Security.