メインコンテンツへスキップ

スタートガイド

GitHub

AIアシストによるセットアップでプラグインをインストールできます。以下のコマンドを使用して、お使いのAIツールに Capgo のスキルを追加してください:

ターミナル
bunx 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-pinning
bunx cap sync
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();
console.log(result);
  • ネイティブ同期: 実行 bunx cap sync プラグインのアップグレード後。
  • 信頼できる情報源: 信頼 src/definitions.ts GitHub リポジトリ内。

プラグインから参照可能な、現在有効なネイティブ設定を返します。

import { SSLPinning } from '@capgo/capacitor-ssl-pinning';
const result = await SSLPinning.getConfiguration();
console.log(result);

現在プラグインから参照可能な、静的なSSL pinning設定。

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[];
}

プラグインのバージョン情報ペイロード。

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

このページはプラグインの src/definitions.tsから生成されています。upstream で公開 API が変更されたら、再度 sync を実行してください。

Getting Startedの続きを進める

「Getting Started からの続き」セクション

使用している場合 スタートガイド セキュリティとコンプライアンスを計画するには、これを以下と連携させてください @capgo/capacitor-ssl-pinning の使い方 @capgo/capacitor-ssl-pinning を使用した Native Build の機能について、 暗号化 暗号化の実装詳細について コンプライアンス コンプライアンスの実装詳細について Capgo セキュリティスキャナー Capgo Security Scanner の製品ワークフローについて、 Capgo のセキュリティ Capgo Security におけるプロダクトワークフロー向けに。