Title: Error: Trust anchor for certification path not found · Issue #82 · nativescript-community/https · GitHub
Open Graph Title: Error: Trust anchor for certification path not found · Issue #82 · nativescript-community/https
X Title: Error: Trust anchor for certification path not found · Issue #82 · nativescript-community/https
Description: 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: Tru...
Open Graph Description: 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.secur...
X Description: 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.secur...
Opengraph URL: https://github.com/nativescript-community/https/issues/82
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error: Trust anchor for certification path not found","articleBody":"Hello,\r\n\r\nFollowing 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**\r\n\r\nI am testing it on an Android simulator, but I get the same error on a physical device as well.\r\n\r\nHere is my code:\r\n\r\nadding the cert to webpack\r\n```\r\nnew CopyWebpackPlugin([\r\n { from: { glob: \"fonts/**\" } },\r\n { from: { glob: \"**/*.jpg\" } },\r\n { from: { glob: \"**/*.png\" } },\r\n { from: { glob: \"certs/*.cer\" } },\r\n]\r\n```\r\nenable the pinning\r\n```\r\nconst dir = knownFolders.currentApp().getFolder('certs');\r\nconst cert = dir.getFile('\u003ccert_name\u003e.cer').path;\r\nhttps.enableSSLPinning({\r\n host: \u003cdomain\u003e',\r\n certificate: cert\r\n });\r\n```\r\n\r\nthen\r\n\r\n```\r\nhttps.request({\r\n url: '\u003curl\u003e',\r\n method: 'GET'\r\n}).then((res) =\u003e {\r\n console.log(res.statusCode);\r\n}).catch((err) =\u003e {\r\n console.error(err);\r\n});\r\n```\r\n\r\nThe code runs without an issue and the certificate is valid. I checked it using the **openssl x509 -in \u003ccert.cer\u003e -text -noout** command.\r\n\r\nAm I missing something?\r\nThank you\r\n\r\n","author":{"url":"https://github.com/dpdragnev","@type":"Person","name":"dpdragnev"},"datePublished":"2021-05-06T18:04:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/82/https/issues/82"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d0834d0-8f84-8207-81f4-851eb3fce890 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CACE:11B161:3BEAD3:4E992D:698D1B62 |
| html-safe-nonce | a35cb523716382bd675a8534fc08e66efb198563e19f5adc6792ff4e0d85b135 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUNFOjExQjE2MTozQkVBRDM6NEU5OTJEOjY5OEQxQjYyIiwidmlzaXRvcl9pZCI6IjY1NTcyNzk1MjkyNDQzNjc3MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 80c02f3041c5e0d20ce0b524c100e03e735959a8466be1781102cda028d315bb |
| hovercard-subject-tag | issue:877810106 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nativescript-community/https/82/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ca7172530c664e3905cc577eb8d109012c145634776499122e66ad15e244148/nativescript-community/https/issues/82 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ca7172530c664e3905cc577eb8d109012c145634776499122e66ad15e244148/nativescript-community/https/issues/82 |
| og:image:alt | 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.secur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dpdragnev |
| hostname | github.com |
| expected-hostname | github.com |
| None | c25395580e1e3bf82d705e0982a1b24255366088720fef945f1493d5e3e67954 |
| turbo-cache-control | no-preview |
| go-import | github.com/nativescript-community/https git https://github.com/nativescript-community/https.git |
| octolytics-dimension-user_id | 50633791 |
| octolytics-dimension-user_login | nativescript-community |
| octolytics-dimension-repository_id | 77530217 |
| octolytics-dimension-repository_nwo | nativescript-community/https |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 77530217 |
| octolytics-dimension-repository_network_root_nwo | nativescript-community/https |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 94219dcb9c044792ec271fd5b23c73419858bef7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width