开始
复制安装提示并获取该插件的完整Markdown指南。
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-ssl-pinning`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/ssl-pinning/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
您可以使用我们的AI辅助安装插件。使用以下命令将Capgo技能添加到您的AI工具中:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins然后使用以下提示:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-ssl-pinning` plugin in my project.如果您更喜欢手动设置,请按照以下命令安装插件并遵循以下平台特定的说明:
bun add @capgo/capacitor-ssl-pinningbunx cap syncimport { SSLPinning } from '@capgo/capacitor-ssl-pinning';API概述
标题为“API概述”的部分getConfiguration
标题为“getConfiguration”的部分返回当前可见于插件的活跃本机配置。
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();console.log(result);类型参考
类型参考SSLPinningConfigurationState
标题:类型参考标题:SSLPinConfigState
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[];}PluginVersionResult
当前可见于插件的静态SSL固定配置。标题:插件版本结果
export interface PluginVersionResult { /** * Version identifier returned by the platform implementation. */ version: string;}插件版本数据包。
真实来源本页面由插件生成 src/definitions.ts. 当公共 API 上游更改时,请重新运行同步
继续从 Getting Started
标题为“继续从 Getting Started”如果您正在使用 开始使用 来规划安全性和合规性,请将其与 使用 @capgo/capacitor-ssl-pinning 用于在 Using @capgo/capacitor-ssl-pinning 中的本机功能 加密 用于加密的实现细节 合规 为 Compliance 的实现细节 Capgo 安全扫描器 为 Capgo 安全扫描器 的产品工作流程 Capgo 安全 为 Capgo 安全 的产品工作流程