Error: Trust anchor for certification path not found
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- android, javascript
調査の方向性
証明書をコピーする webpack 設定と https.enableSSLPinning の呼び出しから始め、Android 上で .cer パスがどのようにパッケージ化されるかを確認し、プラグインに記載されている証明書の要件と比較します。シミュレーターと実機で GET を再現し、その後、SSLHandshakeException が発生せずにリクエストが成功することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Hello,
Following the documentation I am trying to implement a simple call to test the plugin but I when I execute the call I get the following error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
I am testing it on an Android simulator, but I get the same error on a physical device as well.
Here is my code:
adding the cert to webpack
new CopyWebpackPlugin([
{ from: { glob: "fonts/**" } },
{ from: { glob: "**/*.jpg" } },
{ from: { glob: "**/*.png" } },
{ from: { glob: "certs/*.cer" } },
]
enable the pinning
const dir = knownFolders.currentApp().getFolder('certs');
const cert = dir.getFile('<cert_name>.cer').path;
https.enableSSLPinning({
host: <domain>',
certificate: cert
});
then
https.request({
url: '<url>',
method: 'GET'
}).then((res) => {
console.log(res.statusCode);
}).catch((err) => {
console.error(err);
});
The code runs without an issue and the certificate is valid. I checked it using the openssl x509 -in <cert.cer> -text -noout command.
Am I missing something?
Thank you
- 主要言語
- Vue
- スター
- 52
- フォーク
- 40
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nativescript-community/https のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
nativescript-community/https#111 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nativescript-community/https#110 · コメント 7 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
nativescript-community/https#109 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
nativescript-community/https#100 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
nativescript-community/https の issue をすべて見る
似ている issue
-
[FEATURE]: Bump gitlab-ai-provider to 6.15.1 on v2 (Fable 5.1, GPT-6 Astra, workflow reconnect fix) オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
registrystack/registry-stack#1239 ·
-
bug priority:normal ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenHands/extensions#626 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
avniproject/avni-client#2135 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100