@chilkat/react-native 11.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/ChilkatRN.podspec +44 -0
- package/LICENSE +254 -0
- package/README.md +67 -0
- package/android/CMakeLists.txt +60 -0
- package/android/build.gradle +148 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +12 -0
- package/android/src/main/java/com/margelo/nitro/chilkat/ChilkatRNPackage.java +33 -0
- package/chilkat-checksums.json +9 -0
- package/cpp/HybridAi.cpp +660 -0
- package/cpp/HybridAi.hpp +159 -0
- package/cpp/HybridAsn.cpp +403 -0
- package/cpp/HybridAsn.hpp +105 -0
- package/cpp/HybridAuthAws.cpp +188 -0
- package/cpp/HybridAuthAws.hpp +55 -0
- package/cpp/HybridAuthAzureSAS.cpp +142 -0
- package/cpp/HybridAuthAzureSAS.hpp +47 -0
- package/cpp/HybridAuthAzureStorage.cpp +144 -0
- package/cpp/HybridAuthAzureStorage.hpp +47 -0
- package/cpp/HybridAuthGoogle.cpp +215 -0
- package/cpp/HybridAuthGoogle.hpp +67 -0
- package/cpp/HybridBinData.cpp +439 -0
- package/cpp/HybridBinData.hpp +112 -0
- package/cpp/HybridBz2.cpp +177 -0
- package/cpp/HybridBz2.hpp +58 -0
- package/cpp/HybridCache.cpp +314 -0
- package/cpp/HybridCache.hpp +82 -0
- package/cpp/HybridCert.cpp +840 -0
- package/cpp/HybridCert.hpp +196 -0
- package/cpp/HybridCertChain.cpp +149 -0
- package/cpp/HybridCertChain.hpp +50 -0
- package/cpp/HybridCertStore.cpp +276 -0
- package/cpp/HybridCertStore.hpp +78 -0
- package/cpp/HybridCharset.cpp +333 -0
- package/cpp/HybridCharset.hpp +83 -0
- package/cpp/HybridCkDateTime.cpp +384 -0
- package/cpp/HybridCkDateTime.hpp +105 -0
- package/cpp/HybridCodeSign.cpp +156 -0
- package/cpp/HybridCodeSign.hpp +55 -0
- package/cpp/HybridCompression.cpp +422 -0
- package/cpp/HybridCompression.hpp +100 -0
- package/cpp/HybridCrypt2.cpp +1517 -0
- package/cpp/HybridCrypt2.hpp +320 -0
- package/cpp/HybridCsr.cpp +292 -0
- package/cpp/HybridCsr.hpp +77 -0
- package/cpp/HybridCsv.cpp +382 -0
- package/cpp/HybridCsv.hpp +101 -0
- package/cpp/HybridDh.cpp +137 -0
- package/cpp/HybridDh.hpp +47 -0
- package/cpp/HybridDirTree.cpp +167 -0
- package/cpp/HybridDirTree.hpp +53 -0
- package/cpp/HybridDkim.cpp +249 -0
- package/cpp/HybridDkim.hpp +74 -0
- package/cpp/HybridDns.cpp +193 -0
- package/cpp/HybridDns.hpp +64 -0
- package/cpp/HybridDsa.cpp +453 -0
- package/cpp/HybridDsa.hpp +112 -0
- package/cpp/HybridDtObj.cpp +172 -0
- package/cpp/HybridDtObj.hpp +57 -0
- package/cpp/HybridEcc.cpp +195 -0
- package/cpp/HybridEcc.hpp +55 -0
- package/cpp/HybridEdDSA.cpp +147 -0
- package/cpp/HybridEdDSA.hpp +47 -0
- package/cpp/HybridEmail.cpp +1911 -0
- package/cpp/HybridEmail.hpp +419 -0
- package/cpp/HybridEmailBundle.cpp +204 -0
- package/cpp/HybridEmailBundle.hpp +64 -0
- package/cpp/HybridFileAccess.cpp +631 -0
- package/cpp/HybridFileAccess.hpp +149 -0
- package/cpp/HybridFtp2.cpp +2308 -0
- package/cpp/HybridFtp2.hpp +462 -0
- package/cpp/HybridGlobal.cpp +221 -0
- package/cpp/HybridGlobal.hpp +68 -0
- package/cpp/HybridGzip.cpp +440 -0
- package/cpp/HybridGzip.hpp +105 -0
- package/cpp/HybridHashtable.cpp +211 -0
- package/cpp/HybridHashtable.hpp +64 -0
- package/cpp/HybridHtmlToText.cpp +136 -0
- package/cpp/HybridHtmlToText.hpp +47 -0
- package/cpp/HybridHtmlToXml.cpp +218 -0
- package/cpp/HybridHtmlToXml.hpp +65 -0
- package/cpp/HybridHttp.cpp +2067 -0
- package/cpp/HybridHttp.hpp +416 -0
- package/cpp/HybridHttpCurl.cpp +337 -0
- package/cpp/HybridHttpCurl.hpp +93 -0
- package/cpp/HybridHttpRequest.cpp +455 -0
- package/cpp/HybridHttpRequest.hpp +109 -0
- package/cpp/HybridHttpResponse.cpp +340 -0
- package/cpp/HybridHttpResponse.hpp +86 -0
- package/cpp/HybridImap.cpp +1818 -0
- package/cpp/HybridImap.hpp +363 -0
- package/cpp/HybridJavaKeyStore.cpp +387 -0
- package/cpp/HybridJavaKeyStore.hpp +98 -0
- package/cpp/HybridJs.cpp +154 -0
- package/cpp/HybridJs.hpp +54 -0
- package/cpp/HybridJsonArray.cpp +441 -0
- package/cpp/HybridJsonArray.hpp +120 -0
- package/cpp/HybridJsonObject.cpp +1125 -0
- package/cpp/HybridJsonObject.hpp +260 -0
- package/cpp/HybridJwe.cpp +294 -0
- package/cpp/HybridJwe.hpp +82 -0
- package/cpp/HybridJws.cpp +290 -0
- package/cpp/HybridJws.hpp +82 -0
- package/cpp/HybridJwt.cpp +198 -0
- package/cpp/HybridJwt.hpp +57 -0
- package/cpp/HybridLog.cpp +212 -0
- package/cpp/HybridLog.hpp +63 -0
- package/cpp/HybridMailMan.cpp +1853 -0
- package/cpp/HybridMailMan.hpp +386 -0
- package/cpp/HybridMailboxes.cpp +165 -0
- package/cpp/HybridMailboxes.hpp +54 -0
- package/cpp/HybridMcp.cpp +322 -0
- package/cpp/HybridMcp.hpp +85 -0
- package/cpp/HybridMessageSet.cpp +162 -0
- package/cpp/HybridMessageSet.hpp +54 -0
- package/cpp/HybridMht.cpp +700 -0
- package/cpp/HybridMht.hpp +165 -0
- package/cpp/HybridMime.cpp +1119 -0
- package/cpp/HybridMime.hpp +266 -0
- package/cpp/HybridNtlm.cpp +333 -0
- package/cpp/HybridNtlm.hpp +83 -0
- package/cpp/HybridOAuth1.cpp +307 -0
- package/cpp/HybridOAuth1.hpp +78 -0
- package/cpp/HybridOAuth2.cpp +515 -0
- package/cpp/HybridOAuth2.hpp +127 -0
- package/cpp/HybridPdf.cpp +370 -0
- package/cpp/HybridPdf.hpp +103 -0
- package/cpp/HybridPem.cpp +327 -0
- package/cpp/HybridPem.hpp +88 -0
- package/cpp/HybridPfx.cpp +343 -0
- package/cpp/HybridPfx.hpp +87 -0
- package/cpp/HybridPkcs11.cpp +318 -0
- package/cpp/HybridPkcs11.hpp +88 -0
- package/cpp/HybridPrivateKey.cpp +464 -0
- package/cpp/HybridPrivateKey.hpp +117 -0
- package/cpp/HybridPrng.cpp +192 -0
- package/cpp/HybridPrng.hpp +57 -0
- package/cpp/HybridPublicKey.cpp +238 -0
- package/cpp/HybridPublicKey.hpp +68 -0
- package/cpp/HybridRest.cpp +993 -0
- package/cpp/HybridRest.hpp +214 -0
- package/cpp/HybridRsa.cpp +348 -0
- package/cpp/HybridRsa.hpp +90 -0
- package/cpp/HybridSCard.cpp +328 -0
- package/cpp/HybridSCard.hpp +91 -0
- package/cpp/HybridSFtp.cpp +1889 -0
- package/cpp/HybridSFtp.hpp +366 -0
- package/cpp/HybridSFtpDir.cpp +119 -0
- package/cpp/HybridSFtpDir.hpp +43 -0
- package/cpp/HybridSFtpFile.cpp +203 -0
- package/cpp/HybridSFtpFile.hpp +60 -0
- package/cpp/HybridScMinidriver.cpp +341 -0
- package/cpp/HybridScMinidriver.hpp +88 -0
- package/cpp/HybridScp.cpp +398 -0
- package/cpp/HybridScp.hpp +96 -0
- package/cpp/HybridSecrets.cpp +328 -0
- package/cpp/HybridSecrets.hpp +84 -0
- package/cpp/HybridSecureString.cpp +175 -0
- package/cpp/HybridSecureString.hpp +55 -0
- package/cpp/HybridServerSentEvent.cpp +112 -0
- package/cpp/HybridServerSentEvent.hpp +41 -0
- package/cpp/HybridSocket.cpp +1567 -0
- package/cpp/HybridSocket.hpp +336 -0
- package/cpp/HybridSpider.cpp +543 -0
- package/cpp/HybridSpider.hpp +138 -0
- package/cpp/HybridSsh.cpp +1330 -0
- package/cpp/HybridSsh.hpp +282 -0
- package/cpp/HybridSshKey.cpp +310 -0
- package/cpp/HybridSshKey.hpp +83 -0
- package/cpp/HybridSshTunnel.cpp +687 -0
- package/cpp/HybridSshTunnel.hpp +159 -0
- package/cpp/HybridStream.cpp +496 -0
- package/cpp/HybridStream.hpp +123 -0
- package/cpp/HybridStringArray.cpp +368 -0
- package/cpp/HybridStringArray.hpp +99 -0
- package/cpp/HybridStringBuilder.cpp +739 -0
- package/cpp/HybridStringBuilder.hpp +178 -0
- package/cpp/HybridStringTable.cpp +218 -0
- package/cpp/HybridStringTable.hpp +66 -0
- package/cpp/HybridTar.cpp +547 -0
- package/cpp/HybridTar.hpp +134 -0
- package/cpp/HybridTrustedRoots.cpp +178 -0
- package/cpp/HybridTrustedRoots.hpp +61 -0
- package/cpp/HybridUnixCompress.cpp +191 -0
- package/cpp/HybridUnixCompress.hpp +60 -0
- package/cpp/HybridUpload.cpp +427 -0
- package/cpp/HybridUpload.hpp +114 -0
- package/cpp/HybridUrl.cpp +152 -0
- package/cpp/HybridUrl.hpp +48 -0
- package/cpp/HybridWebSocket.cpp +378 -0
- package/cpp/HybridWebSocket.hpp +103 -0
- package/cpp/HybridXml.cpp +1527 -0
- package/cpp/HybridXml.hpp +340 -0
- package/cpp/HybridXmlCertVault.cpp +215 -0
- package/cpp/HybridXmlCertVault.hpp +63 -0
- package/cpp/HybridXmlDSig.cpp +328 -0
- package/cpp/HybridXmlDSig.hpp +88 -0
- package/cpp/HybridXmlDSigGen.cpp +549 -0
- package/cpp/HybridXmlDSigGen.hpp +126 -0
- package/cpp/HybridXmp.cpp +329 -0
- package/cpp/HybridXmp.hpp +86 -0
- package/cpp/HybridZip.cpp +1000 -0
- package/cpp/HybridZip.hpp +226 -0
- package/cpp/HybridZipCrc.cpp +162 -0
- package/cpp/HybridZipCrc.hpp +57 -0
- package/cpp/HybridZipEntry.cpp +395 -0
- package/cpp/HybridZipEntry.hpp +102 -0
- package/cpp/runtime/AsyncCall.hpp +96 -0
- package/cpp/runtime/Bytes.hpp +49 -0
- package/cpp/runtime/ChilkatError.hpp +66 -0
- package/cpp/runtime/ChilkatObject.hpp +219 -0
- package/cpp/runtime/ProgLang.hpp +9 -0
- package/cpp/runtime/ProgressAdapter.hpp +43 -0
- package/nitro.json +113 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.cmake +179 -0
- package/nitrogen/generated/android/ChilkatRN+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.cpp +1029 -0
- package/nitrogen/generated/android/ChilkatRNOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/chilkat/ChilkatRNOnLoad.kt +35 -0
- package/nitrogen/generated/ios/ChilkatRN+autolinking.rb +62 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Bridge.hpp +27 -0
- package/nitrogen/generated/ios/ChilkatRN-Swift-Cxx-Umbrella.hpp +38 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.mm +1015 -0
- package/nitrogen/generated/ios/ChilkatRNAutolinking.swift +16 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.cpp +114 -0
- package/nitrogen/generated/shared/c++/HybridAiSpec.hpp +175 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.cpp +70 -0
- package/nitrogen/generated/shared/c++/HybridAsnSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridAuthAwsSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureSASSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridAuthAzureStorageSpec.hpp +81 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.cpp +56 -0
- package/nitrogen/generated/shared/c++/HybridAuthGoogleSpec.hpp +108 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridBinDataSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.cpp +47 -0
- package/nitrogen/generated/shared/c++/HybridBz2Spec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridCacheSpec.hpp +106 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridCertChainSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridCertSpec.hpp +205 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.cpp +55 -0
- package/nitrogen/generated/shared/c++/HybridCertStoreSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCharsetSpec.hpp +101 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridCkDateTimeSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridCodeSignSpec.hpp +93 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridCompressionSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridCrypt2Spec.hpp +283 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridCsrSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.cpp +72 -0
- package/nitrogen/generated/shared/c++/HybridCsvSpec.hpp +121 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridDhSpec.hpp +77 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridDirTreeSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridDkimSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.cpp +51 -0
- package/nitrogen/generated/shared/c++/HybridDnsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridDsaSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridDtObjSpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridEccSpec.hpp +96 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridEdDSASpec.hpp +90 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridEmailBundleSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.cpp +259 -0
- package/nitrogen/generated/shared/c++/HybridEmailSpec.hpp +326 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.cpp +90 -0
- package/nitrogen/generated/shared/c++/HybridFileAccessSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.cpp +367 -0
- package/nitrogen/generated/shared/c++/HybridFtp2Spec.hpp +434 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridGlobalSpec.hpp +99 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.cpp +79 -0
- package/nitrogen/generated/shared/c++/HybridGzipSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridHashtableSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToTextSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.cpp +49 -0
- package/nitrogen/generated/shared/c++/HybridHtmlToXmlSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridHttpCurlSpec.hpp +125 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHttpRequestSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridHttpResponseSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.cpp +334 -0
- package/nitrogen/generated/shared/c++/HybridHttpSpec.hpp +407 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.cpp +275 -0
- package/nitrogen/generated/shared/c++/HybridImapSpec.hpp +360 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridJavaKeyStoreSpec.hpp +132 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJsSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridJsonArraySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.cpp +154 -0
- package/nitrogen/generated/shared/c++/HybridJsonObjectSpec.hpp +218 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJweSpec.hpp +112 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridJwsSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridJwtSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.cpp +44 -0
- package/nitrogen/generated/shared/c++/HybridLogSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.cpp +311 -0
- package/nitrogen/generated/shared/c++/HybridMailManSpec.hpp +396 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridMailboxesSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridMcpSpec.hpp +117 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.cpp +41 -0
- package/nitrogen/generated/shared/c++/HybridMessageSetSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.cpp +138 -0
- package/nitrogen/generated/shared/c++/HybridMhtSpec.hpp +181 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.cpp +169 -0
- package/nitrogen/generated/shared/c++/HybridMimeSpec.hpp +233 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.cpp +69 -0
- package/nitrogen/generated/shared/c++/HybridNtlmSpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.cpp +67 -0
- package/nitrogen/generated/shared/c++/HybridOAuth1Spec.hpp +110 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.cpp +107 -0
- package/nitrogen/generated/shared/c++/HybridOAuth2Spec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.cpp +73 -0
- package/nitrogen/generated/shared/c++/HybridPdfSpec.hpp +134 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.cpp +63 -0
- package/nitrogen/generated/shared/c++/HybridPemSpec.hpp +124 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridPfxSpec.hpp +122 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.cpp +60 -0
- package/nitrogen/generated/shared/c++/HybridPkcs11Spec.hpp +115 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.cpp +76 -0
- package/nitrogen/generated/shared/c++/HybridPrivateKeySpec.hpp +131 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridPrngSpec.hpp +85 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridPublicKeySpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.cpp +150 -0
- package/nitrogen/generated/shared/c++/HybridRestSpec.hpp +229 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.cpp +68 -0
- package/nitrogen/generated/shared/c++/HybridRsaSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.cpp +64 -0
- package/nitrogen/generated/shared/c++/HybridSCardSpec.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridSFtpDirSpec.hpp +78 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.cpp +57 -0
- package/nitrogen/generated/shared/c++/HybridSFtpFileSpec.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.cpp +284 -0
- package/nitrogen/generated/shared/c++/HybridSFtpSpec.hpp +354 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.cpp +61 -0
- package/nitrogen/generated/shared/c++/HybridScMinidriverSpec.hpp +119 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.cpp +78 -0
- package/nitrogen/generated/shared/c++/HybridScpSpec.hpp +127 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.cpp +65 -0
- package/nitrogen/generated/shared/c++/HybridSecretsSpec.hpp +120 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridSecureStringSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.cpp +35 -0
- package/nitrogen/generated/shared/c++/HybridServerSentEventSpec.hpp +75 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.cpp +262 -0
- package/nitrogen/generated/shared/c++/HybridSocketSpec.hpp +327 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridSpiderSpec.hpp +153 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.cpp +59 -0
- package/nitrogen/generated/shared/c++/HybridSshKeySpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.cpp +215 -0
- package/nitrogen/generated/shared/c++/HybridSshSpec.hpp +276 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.cpp +136 -0
- package/nitrogen/generated/shared/c++/HybridSshTunnelSpec.hpp +191 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.cpp +100 -0
- package/nitrogen/generated/shared/c++/HybridStreamSpec.hpp +150 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.cpp +66 -0
- package/nitrogen/generated/shared/c++/HybridStringArraySpec.hpp +109 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.cpp +104 -0
- package/nitrogen/generated/shared/c++/HybridStringBuilderSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.cpp +46 -0
- package/nitrogen/generated/shared/c++/HybridStringTableSpec.hpp +89 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.cpp +110 -0
- package/nitrogen/generated/shared/c++/HybridTarSpec.hpp +156 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridTrustedRootsSpec.hpp +97 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.cpp +48 -0
- package/nitrogen/generated/shared/c++/HybridUnixCompressSpec.hpp +91 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.cpp +98 -0
- package/nitrogen/generated/shared/c++/HybridUploadSpec.hpp +141 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridUrlSpec.hpp +82 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.cpp +80 -0
- package/nitrogen/generated/shared/c++/HybridWebSocketSpec.hpp +135 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.cpp +45 -0
- package/nitrogen/generated/shared/c++/HybridXmlCertVaultSpec.hpp +94 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.cpp +99 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigGenSpec.hpp +163 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridXmlDSigSpec.hpp +126 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.cpp +203 -0
- package/nitrogen/generated/shared/c++/HybridXmlSpec.hpp +253 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.cpp +58 -0
- package/nitrogen/generated/shared/c++/HybridXmpSpec.hpp +104 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.cpp +43 -0
- package/nitrogen/generated/shared/c++/HybridZipCrcSpec.hpp +92 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.cpp +82 -0
- package/nitrogen/generated/shared/c++/HybridZipEntrySpec.hpp +137 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.cpp +176 -0
- package/nitrogen/generated/shared/c++/HybridZipSpec.hpp +231 -0
- package/package.json +46 -0
- package/react-native.config.js +9 -0
- package/scripts/fetch-chilkat.js +184 -0
- package/src/index.ts +306 -0
- package/src/runtime/chilkat.ts +25 -0
- package/src/specs/Ai.nitro.ts +1288 -0
- package/src/specs/Asn.nitro.ts +509 -0
- package/src/specs/AuthAws.nitro.ts +234 -0
- package/src/specs/AuthAzureSAS.nitro.ts +205 -0
- package/src/specs/AuthAzureStorage.nitro.ts +172 -0
- package/src/specs/AuthGoogle.nitro.ts +291 -0
- package/src/specs/BinData.nitro.ts +470 -0
- package/src/specs/Bz2.nitro.ts +269 -0
- package/src/specs/Cache.nitro.ts +483 -0
- package/src/specs/Cert.nitro.ts +1279 -0
- package/src/specs/CertChain.nitro.ts +312 -0
- package/src/specs/CertStore.nitro.ts +430 -0
- package/src/specs/Charset.nitro.ts +518 -0
- package/src/specs/CkDateTime.nitro.ts +492 -0
- package/src/specs/CodeSign.nitro.ts +307 -0
- package/src/specs/Compression.nitro.ts +654 -0
- package/src/specs/Crypt2.nitro.ts +2387 -0
- package/src/specs/Csr.nitro.ts +461 -0
- package/src/specs/Csv.nitro.ts +670 -0
- package/src/specs/Dh.nitro.ts +343 -0
- package/src/specs/DirTree.nitro.ts +332 -0
- package/src/specs/Dkim.nitro.ts +595 -0
- package/src/specs/Dns.nitro.ts +271 -0
- package/src/specs/Dsa.nitro.ts +653 -0
- package/src/specs/DtObj.nitro.ts +198 -0
- package/src/specs/Ecc.nitro.ts +375 -0
- package/src/specs/EdDSA.nitro.ts +273 -0
- package/src/specs/Email.nitro.ts +2921 -0
- package/src/specs/EmailBundle.nitro.ts +334 -0
- package/src/specs/FileAccess.nitro.ts +836 -0
- package/src/specs/Ftp2.nitro.ts +3943 -0
- package/src/specs/Global.nitro.ts +319 -0
- package/src/specs/Gzip.nitro.ts +646 -0
- package/src/specs/Hashtable.nitro.ts +356 -0
- package/src/specs/HtmlToText.nitro.ts +238 -0
- package/src/specs/HtmlToXml.nitro.ts +323 -0
- package/src/specs/Http.nitro.ts +3095 -0
- package/src/specs/HttpCurl.nitro.ts +550 -0
- package/src/specs/HttpRequest.nitro.ts +522 -0
- package/src/specs/HttpResponse.nitro.ts +424 -0
- package/src/specs/Imap.nitro.ts +2991 -0
- package/src/specs/JavaKeyStore.nitro.ts +619 -0
- package/src/specs/Js.nitro.ts +263 -0
- package/src/specs/JsonArray.nitro.ts +681 -0
- package/src/specs/JsonObject.nitro.ts +1454 -0
- package/src/specs/Jwe.nitro.ts +756 -0
- package/src/specs/Jws.nitro.ts +733 -0
- package/src/specs/Jwt.nitro.ts +380 -0
- package/src/specs/Log.nitro.ts +258 -0
- package/src/specs/MailMan.nitro.ts +3571 -0
- package/src/specs/Mailboxes.nitro.ts +251 -0
- package/src/specs/Mcp.nitro.ts +491 -0
- package/src/specs/MessageSet.nitro.ts +320 -0
- package/src/specs/Mht.nitro.ts +1684 -0
- package/src/specs/Mime.nitro.ts +1745 -0
- package/src/specs/Ntlm.nitro.ts +556 -0
- package/src/specs/OAuth1.nitro.ts +331 -0
- package/src/specs/OAuth2.nitro.ts +1023 -0
- package/src/specs/Pdf.nitro.ts +740 -0
- package/src/specs/Pem.nitro.ts +484 -0
- package/src/specs/Pfx.nitro.ts +1003 -0
- package/src/specs/Pkcs11.nitro.ts +559 -0
- package/src/specs/PrivateKey.nitro.ts +994 -0
- package/src/specs/Prng.nitro.ts +348 -0
- package/src/specs/PublicKey.nitro.ts +610 -0
- package/src/specs/Rest.nitro.ts +1972 -0
- package/src/specs/Rsa.nitro.ts +453 -0
- package/src/specs/SCard.nitro.ts +739 -0
- package/src/specs/SFtp.nitro.ts +3138 -0
- package/src/specs/SFtpDir.nitro.ts +213 -0
- package/src/specs/SFtpFile.nitro.ts +452 -0
- package/src/specs/ScMinidriver.nitro.ts +443 -0
- package/src/specs/Scp.nitro.ts +708 -0
- package/src/specs/Secrets.nitro.ts +470 -0
- package/src/specs/SecureString.nitro.ts +231 -0
- package/src/specs/ServerSentEvent.nitro.ts +183 -0
- package/src/specs/Socket.nitro.ts +3335 -0
- package/src/specs/Spider.nitro.ts +609 -0
- package/src/specs/Ssh.nitro.ts +2842 -0
- package/src/specs/SshKey.nitro.ts +740 -0
- package/src/specs/SshTunnel.nitro.ts +1243 -0
- package/src/specs/Stream.nitro.ts +737 -0
- package/src/specs/StringArray.nitro.ts +396 -0
- package/src/specs/StringBuilder.nitro.ts +920 -0
- package/src/specs/StringTable.nitro.ts +271 -0
- package/src/specs/Tar.nitro.ts +804 -0
- package/src/specs/TrustedRoots.nitro.ts +360 -0
- package/src/specs/UnixCompress.nitro.ts +293 -0
- package/src/specs/Upload.nitro.ts +623 -0
- package/src/specs/Url.nitro.ts +246 -0
- package/src/specs/WebSocket.nitro.ts +840 -0
- package/src/specs/Xml.nitro.ts +1988 -0
- package/src/specs/XmlCertVault.nitro.ts +259 -0
- package/src/specs/XmlDSig.nitro.ts +464 -0
- package/src/specs/XmlDSigGen.nitro.ts +978 -0
- package/src/specs/Xmp.nitro.ts +364 -0
- package/src/specs/Zip.nitro.ts +1611 -0
- package/src/specs/ZipCrc.nitro.ts +229 -0
- package/src/specs/ZipEntry.nitro.ts +782 -0
|
@@ -0,0 +1,1279 @@
|
|
|
1
|
+
// Generated by ReactNativeNs.RnGenerator -- do not edit.
|
|
2
|
+
import type { HybridObject } from 'react-native-nitro-modules'
|
|
3
|
+
import type { BinData } from './BinData.nitro'
|
|
4
|
+
import type { CertChain } from './CertChain.nitro'
|
|
5
|
+
import type { JsonObject } from './JsonObject.nitro'
|
|
6
|
+
import type { Pkcs11 } from './Pkcs11.nitro'
|
|
7
|
+
import type { PrivateKey } from './PrivateKey.nitro'
|
|
8
|
+
import type { PublicKey } from './PublicKey.nitro'
|
|
9
|
+
import type { XmlCertVault } from './XmlCertVault.nitro'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Load, inspect, validate, and use X.509 certificates throughout Chilkat.
|
|
13
|
+
*
|
|
14
|
+
* `Cert` is the central certificate object used throughout
|
|
15
|
+
* Chilkat for TLS, S/MIME, PKCS7/CMS, PDF signing, XML signing, code signing,
|
|
16
|
+
* decryption, certificate stores, smart cards, HSMs, PKCS#11, and cloud-based
|
|
17
|
+
* signing. It provides a broad set of features for loading certificates,
|
|
18
|
+
* inspecting certificate fields, checking validity, accessing private keys,
|
|
19
|
+
* building chains, checking revocation status, exporting certificate data, and
|
|
20
|
+
* diagnosing certificate-related problems.
|
|
21
|
+
*
|
|
22
|
+
* **Load certificates**
|
|
23
|
+
*
|
|
24
|
+
* Load public certificates from PEM, DER, Base64, files, strings, binary
|
|
25
|
+
* data, certificate stores, PFX/P12 files, smart cards, and other sources.
|
|
26
|
+
*
|
|
27
|
+
* **Inspect certificate details**
|
|
28
|
+
*
|
|
29
|
+
* Read subject and issuer fields, serial numbers, fingerprints, validity
|
|
30
|
+
* dates, key usage, extensions, SAN values, and other X.509 information.
|
|
31
|
+
*
|
|
32
|
+
* **Private key access**
|
|
33
|
+
*
|
|
34
|
+
* Work with certificates backed by private keys from PFX/P12 files, OS
|
|
35
|
+
* certificate stores, smart cards, HSMs, PKCS#11 modules, or cloud signing
|
|
36
|
+
* providers.
|
|
37
|
+
*
|
|
38
|
+
* **Trust and validation**
|
|
39
|
+
*
|
|
40
|
+
* Build and inspect certificate chains, verify signatures, check expiration,
|
|
41
|
+
* examine trust-related information, and work with revocation data.
|
|
42
|
+
*
|
|
43
|
+
* **Use across Chilkat**
|
|
44
|
+
*
|
|
45
|
+
* Pass `Cert` objects to other Chilkat classes for TLS client
|
|
46
|
+
* authentication, S/MIME, signing, encryption, decryption, and verification.
|
|
47
|
+
*
|
|
48
|
+
* **Export and diagnostics**
|
|
49
|
+
*
|
|
50
|
+
* Export certificate data in common formats and use detailed diagnostic
|
|
51
|
+
* output to troubleshoot loading, validation, private-key, chain, or store
|
|
52
|
+
* problems.
|
|
53
|
+
*
|
|
54
|
+
* **Common pattern:**
|
|
55
|
+
* Use certificate-only formats such as PEM or DER when only the public
|
|
56
|
+
* certificate is needed. Use PFX/P12, an OS certificate store, smart-card
|
|
57
|
+
* loading, PKCS#11 linking, HSM integration, or cloud-signing configuration
|
|
58
|
+
* when a private key operation is required.
|
|
59
|
+
*
|
|
60
|
+
* For an extended overview, see
|
|
61
|
+
* [Cert Class Overview](https://www.chilkatsoft.com/cert_class_overview.asp).
|
|
62
|
+
*
|
|
63
|
+
* Each `Cert` instance owns a native Chilkat object. It is released when the JavaScript object is
|
|
64
|
+
* garbage collected, or immediately by `dispose()`; any use after `dispose()` throws.
|
|
65
|
+
* Create one with `new Cert()`.
|
|
66
|
+
*
|
|
67
|
+
* Methods that can take a while (network, files, compression, key generation) also have an
|
|
68
|
+
* `...Async` form returning a `Promise`; it runs on a native worker thread so the UI keeps
|
|
69
|
+
* rendering. While such a call is pending, every other call on this object throws, except
|
|
70
|
+
* {@link Cert.abort} and assigning {@link Cert.onPercentDone} / {@link Cert.onProgressInfo}.
|
|
71
|
+
*/
|
|
72
|
+
export interface Cert extends HybridObject<{ ios: 'c++', android: 'c++' }> {
|
|
73
|
+
// ---- Properties ----
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Provides HTML-formatted information about the last called method or property. If a method call
|
|
77
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
78
|
+
* available regardless of the method call's success.
|
|
79
|
+
*
|
|
80
|
+
* This property is read-only.
|
|
81
|
+
*/
|
|
82
|
+
readonly lastErrorHtml: string
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Provides plain text information about the last called method or property. If a method call
|
|
86
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
87
|
+
* available regardless of the method call's success.
|
|
88
|
+
*
|
|
89
|
+
* This property is read-only.
|
|
90
|
+
*/
|
|
91
|
+
readonly lastErrorText: string
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Provides XML-formatted information about the last called method or property. If a method call
|
|
95
|
+
* fails or behaves unexpectedly, check this property for details. Note that information is
|
|
96
|
+
* available regardless of the method call's success.
|
|
97
|
+
*
|
|
98
|
+
* This property is read-only.
|
|
99
|
+
*/
|
|
100
|
+
readonly lastErrorXml: string
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Version of the component/library, such as "10.1.0"
|
|
104
|
+
*
|
|
105
|
+
* This property is read-only.
|
|
106
|
+
*/
|
|
107
|
+
readonly version: string
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* If set to a file path, this property logs the LastErrorText of each Chilkat method or property
|
|
111
|
+
* call to the specified file. This logging helps identify the context and history of Chilkat
|
|
112
|
+
* calls leading up to any crash or hang, aiding in debugging.
|
|
113
|
+
*
|
|
114
|
+
* Enabling the VerboseLogging property provides more detailed information.
|
|
115
|
+
*
|
|
116
|
+
* This property is mainly used for debugging rare instances where a Chilkat method call causes a
|
|
117
|
+
* hang or crash, which should generally not happen.
|
|
118
|
+
*
|
|
119
|
+
* Possible causes of hangs include:
|
|
120
|
+
*
|
|
121
|
+
* - A timeout property set to 0, indicating an infinite timeout.
|
|
122
|
+
*
|
|
123
|
+
* - A hang occurring within an event callback in the application code.
|
|
124
|
+
*
|
|
125
|
+
* - An internal bug in the Chilkat code causing the hang.
|
|
126
|
+
*/
|
|
127
|
+
debugLogFilePath: string
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* If set to `true`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may
|
|
131
|
+
* contain more verbose information. The default value is `false`. Verbose logging should only be
|
|
132
|
+
* used for debugging. The potentially large quantity of logged information may adversely affect
|
|
133
|
+
* peformance.
|
|
134
|
+
*/
|
|
135
|
+
verboseLogging: boolean
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Indicates the success or failure of the most recent method call: `true` means success, `false`
|
|
139
|
+
* means failure. This property remains unchanged by property setters or getters. This method is
|
|
140
|
+
* present to address challenges in checking for null or Nothing returns in certain programming
|
|
141
|
+
* languages. Note: This property does not apply to methods that return integer values or to
|
|
142
|
+
* boolean-returning methods where the boolean does not indicate success or failure.
|
|
143
|
+
*/
|
|
144
|
+
lastMethodSuccess: boolean
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The authority key identifier of the certificate in base64 string format. This is only present
|
|
148
|
+
* if the certificate contains the extension OID 2.5.29.35.
|
|
149
|
+
*
|
|
150
|
+
* This property is read-only.
|
|
151
|
+
*/
|
|
152
|
+
readonly authorityKeyId: string
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Applies only when running on a Microsoft Windows operating system. If `true`, then any method
|
|
156
|
+
* that returns a certificate will not try to also access the associated private key, assuming one
|
|
157
|
+
* exists. This is useful if the certificate was installed with high-security such that a private
|
|
158
|
+
* key access would trigger the Windows OS to display a security warning dialog. The default value
|
|
159
|
+
* of this property is `false`.
|
|
160
|
+
*/
|
|
161
|
+
avoidWindowsPkAccess: boolean
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The version of the certificate (1, 2, or 3). A value of 0 indicates an error -- the most likely
|
|
165
|
+
* cause being that the certificate object is empty (i.e. was never loaded with a certificate).
|
|
166
|
+
* Note: This is not the version of the software, it is the version of the X.509 certificate
|
|
167
|
+
* object. The version of the Chilkat certificate software is indicated by the Version property.
|
|
168
|
+
*
|
|
169
|
+
* This property is read-only.
|
|
170
|
+
*/
|
|
171
|
+
readonly certVersion: number
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Has a value of `true` if the certificate or any certificate in the chain of authority has
|
|
175
|
+
* expired. (This information is not available when running on Windows 95/98 computers.)
|
|
176
|
+
*
|
|
177
|
+
* This property is read-only.
|
|
178
|
+
*/
|
|
179
|
+
readonly expired: boolean
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* `true` if this certificate can be used for client authentication, otherwise `false`.
|
|
183
|
+
*
|
|
184
|
+
* This property is read-only.
|
|
185
|
+
*/
|
|
186
|
+
readonly forClientAuthentication: boolean
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* `true` if this certificate can be used for code signing, otherwise `false`.
|
|
190
|
+
*
|
|
191
|
+
* This property is read-only.
|
|
192
|
+
*/
|
|
193
|
+
readonly forCodeSigning: boolean
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* `true` if this certificate can be used for sending secure email, otherwise `false`.
|
|
197
|
+
*
|
|
198
|
+
* This property is read-only.
|
|
199
|
+
*/
|
|
200
|
+
readonly forSecureEmail: boolean
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* `true` if this certificate can be used for server authentication, otherwise `false`.
|
|
204
|
+
*
|
|
205
|
+
* This property is read-only.
|
|
206
|
+
*/
|
|
207
|
+
readonly forServerAuthentication: boolean
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* `true` if this certificate can be used for time stamping, otherwise `false`.
|
|
211
|
+
*
|
|
212
|
+
* This property is read-only.
|
|
213
|
+
*/
|
|
214
|
+
readonly forTimeStamping: boolean
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Bitflags indicating the intended usages of the certificate.
|
|
218
|
+
* The flags are:
|
|
219
|
+
*
|
|
220
|
+
* Digital Signature: 0x80
|
|
221
|
+
*
|
|
222
|
+
* Non-Repudiation: 0x40
|
|
223
|
+
*
|
|
224
|
+
* Key Encipherment: 0x20
|
|
225
|
+
*
|
|
226
|
+
* Data Encipherment: 0x10
|
|
227
|
+
*
|
|
228
|
+
* Key Agreement: 0x08
|
|
229
|
+
*
|
|
230
|
+
* Certificate Signing: 0x04
|
|
231
|
+
*
|
|
232
|
+
* CRL Signing: 0x02
|
|
233
|
+
*
|
|
234
|
+
* Encipher-Only: 0x01
|
|
235
|
+
*
|
|
236
|
+
* This property is read-only.
|
|
237
|
+
*/
|
|
238
|
+
readonly intendedKeyUsage: number
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* `true` if this is the root certificate, otherwise `false`.
|
|
242
|
+
*
|
|
243
|
+
* This property is read-only.
|
|
244
|
+
*/
|
|
245
|
+
readonly isRoot: boolean
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The certificate issuer's country.
|
|
249
|
+
*
|
|
250
|
+
* This property is read-only.
|
|
251
|
+
*/
|
|
252
|
+
readonly issuerC: string
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* The certificate issuer's common name.
|
|
256
|
+
*
|
|
257
|
+
* This property is read-only.
|
|
258
|
+
*/
|
|
259
|
+
readonly issuerCN: string
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The issuer's full distinguished name.
|
|
263
|
+
*
|
|
264
|
+
* This property is read-only.
|
|
265
|
+
*/
|
|
266
|
+
readonly issuerDN: string
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The certificate issuer's email address.
|
|
270
|
+
*
|
|
271
|
+
* This property is read-only.
|
|
272
|
+
*/
|
|
273
|
+
readonly issuerE: string
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* The certificate issuer's locality, which could be a city, count, township, or other geographic
|
|
277
|
+
* region.
|
|
278
|
+
*
|
|
279
|
+
* This property is read-only.
|
|
280
|
+
*/
|
|
281
|
+
readonly issuerL: string
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* The certificate issuer's organization, which is typically the company name.
|
|
285
|
+
*
|
|
286
|
+
* This property is read-only.
|
|
287
|
+
*/
|
|
288
|
+
readonly issuerO: string
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The certificate issuer's organizational unit, which is the unit within the organization.
|
|
292
|
+
*
|
|
293
|
+
* This property is read-only.
|
|
294
|
+
*/
|
|
295
|
+
readonly issuerOU: string
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The certificate issuer's state or province.
|
|
299
|
+
*
|
|
300
|
+
* This property is read-only.
|
|
301
|
+
*/
|
|
302
|
+
readonly issuerS: string
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* If present in the certificate's extensions, returns the OCSP URL of the certificate. (The
|
|
306
|
+
* Online Certificate Status Protocol (OCSP) is an Internet protocol used for obtaining the
|
|
307
|
+
* revocation status of an X.509 digital certificate.)
|
|
308
|
+
*
|
|
309
|
+
* This property is read-only.
|
|
310
|
+
*/
|
|
311
|
+
readonly ocspUrl: string
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* (Relevant only when running on a Microsoft Windows operating system.) Indicates whether the
|
|
315
|
+
* private key was installed with security settings that allow it to be re-exported.
|
|
316
|
+
*
|
|
317
|
+
* This property is read-only.
|
|
318
|
+
*/
|
|
319
|
+
readonly privateKeyExportable: boolean
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* `true` if the certificate or any certificate in the chain of authority has been revoked. This
|
|
323
|
+
* information is not available when running on Windows 95/98 computers.
|
|
324
|
+
* **Note: **If this property is `false`, it could mean that it was not able to check the
|
|
325
|
+
* revocation status. Because of this uncertainty, a CheckRevoked method has been added. It
|
|
326
|
+
* returns an integer indicating one of three possible states: 1 (revoked), 0 (not revoked), -1
|
|
327
|
+
* (unable to check revocation status).
|
|
328
|
+
*
|
|
329
|
+
* This property is read-only.
|
|
330
|
+
*/
|
|
331
|
+
readonly revoked: boolean
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The RFC822 name of the certificate. (The RFC822 name is one part of the Subject Alternative
|
|
335
|
+
* Name extension of a certificate, if it exists. It is often the only part of the SAN.)
|
|
336
|
+
*
|
|
337
|
+
* If the certificate contains a list of RFC822 names then this property will return the comma
|
|
338
|
+
* separated list of names.
|
|
339
|
+
*
|
|
340
|
+
* Starting in Chilkat v9.5.0.85, to get the complete Subject Alternative Name extension as XML,
|
|
341
|
+
* use the SubjectAlternativeName property.
|
|
342
|
+
*
|
|
343
|
+
* This property is read-only.
|
|
344
|
+
*/
|
|
345
|
+
readonly rfc822Name: string
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* `true` if this is a self-signed certificate, otherwise `false`.
|
|
349
|
+
*
|
|
350
|
+
* This property is read-only.
|
|
351
|
+
*/
|
|
352
|
+
readonly selfSigned: boolean
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* The certificate's serial number as a hexidecimal string.
|
|
356
|
+
*
|
|
357
|
+
* This property is read-only.
|
|
358
|
+
*/
|
|
359
|
+
readonly serialNumber: string
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Hexidecimal string of the SHA-1 thumbprint for the certificate. (This is the SHA1 hash of the
|
|
363
|
+
* binary DER representation of the entire X.509 certificate.)
|
|
364
|
+
*
|
|
365
|
+
* This property is read-only.
|
|
366
|
+
*/
|
|
367
|
+
readonly sha1Thumbprint: string
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Returns `true` if the certificate and all certificates in the chain of authority have valid
|
|
371
|
+
* signatures, otherwise returns `false`.
|
|
372
|
+
*
|
|
373
|
+
* This property is read-only.
|
|
374
|
+
*/
|
|
375
|
+
readonly signatureVerified: boolean
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The certificate subject's country.
|
|
379
|
+
*
|
|
380
|
+
* This property is read-only.
|
|
381
|
+
*/
|
|
382
|
+
readonly subjectC: string
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* The certificate subject's common name.
|
|
386
|
+
*
|
|
387
|
+
* This property is read-only.
|
|
388
|
+
*/
|
|
389
|
+
readonly subjectCN: string
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The certificate subject's full distinguished name.
|
|
393
|
+
*
|
|
394
|
+
* This property is read-only.
|
|
395
|
+
*/
|
|
396
|
+
readonly subjectDN: string
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* The certificate subject's email address.
|
|
400
|
+
*
|
|
401
|
+
* This property is read-only.
|
|
402
|
+
*/
|
|
403
|
+
readonly subjectE: string
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* The subject key identifier of the certificate in base64 string format. This is only present if
|
|
407
|
+
* the certificate contains the extension OID 2.5.29.14.
|
|
408
|
+
*
|
|
409
|
+
* This property is read-only.
|
|
410
|
+
*/
|
|
411
|
+
readonly subjectKeyId: string
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* The certificate subject's locality, which could be a city, count, township, or other geographic
|
|
415
|
+
* region.
|
|
416
|
+
*
|
|
417
|
+
* This property is read-only.
|
|
418
|
+
*/
|
|
419
|
+
readonly subjectL: string
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* The certificate subject's organization, which is typically the company name.
|
|
423
|
+
*
|
|
424
|
+
* This property is read-only.
|
|
425
|
+
*/
|
|
426
|
+
readonly subjectO: string
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* The certificate subject's organizational unit, which is the unit within the organization.
|
|
430
|
+
*
|
|
431
|
+
* This property is read-only.
|
|
432
|
+
*/
|
|
433
|
+
readonly subjectOU: string
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* The certificate subject's state or province.
|
|
437
|
+
*
|
|
438
|
+
* This property is read-only.
|
|
439
|
+
*/
|
|
440
|
+
readonly subjectS: string
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Returns `true` if the certificate has a trusted root authority, otherwise returns `false`.
|
|
444
|
+
*
|
|
445
|
+
* Note: As of version 9.5.0.41, the notion of what your application deems as trusted becomes more
|
|
446
|
+
* specific. The TrustedRoots class/object was added in v9.5.0.0. Prior to this, a certificate was
|
|
447
|
+
* considered to be anchored by a trusted root if the certificate chain could be established to a
|
|
448
|
+
* root (self-signed) certificate, AND if the root certificate was located somewhere in the
|
|
449
|
+
* Windows registry-based certificate stores. There are two problems with this: (1) it's a
|
|
450
|
+
* Windows-only solution. This property would always return `false` on non-Windows systems, and
|
|
451
|
+
* (2) it might be considered not a strong enough set of conditions for trusting a root
|
|
452
|
+
* certificate.
|
|
453
|
+
*
|
|
454
|
+
* As of version 9.5.0.41, this property pays attention to the new TrustedRoots class/object,
|
|
455
|
+
* which allows for an application to specificallly indicate which root certificates are to be
|
|
456
|
+
* trusted. Certificates may be added to the TrustedRoots object via the LoadCaCertsPem or AddCert
|
|
457
|
+
* methods, and then activated by calling the TrustedRoots.Activate method. The activated trusted
|
|
458
|
+
* roots are deemed to be trusted in any Chilkat API method/property that needs to make this
|
|
459
|
+
* determination. In addition, the TrustedRoots object has a property named TrustSystemCaRoots,
|
|
460
|
+
* which defaults to `true`, which allows for backward compatibility. It will trust CA
|
|
461
|
+
* certificates stored in the Windows registry-based certificate stores, or if on Linux, will
|
|
462
|
+
* trust certificates found in /etc/ssl/certs/ca-certificates.crt.
|
|
463
|
+
*
|
|
464
|
+
* This property is read-only.
|
|
465
|
+
*/
|
|
466
|
+
readonly trustedRoot: boolean
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* The date (in RFC822 string format) that this certificate becomes (or became) valid. It is a
|
|
470
|
+
* GMT/UTC date that is returned.
|
|
471
|
+
*
|
|
472
|
+
* This property is read-only.
|
|
473
|
+
*/
|
|
474
|
+
readonly validFromStr: string
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* The date (in RFC822 string format) that this certificate expires. It is a GMT/UTC date that is
|
|
478
|
+
* returned.
|
|
479
|
+
*
|
|
480
|
+
* This property is read-only.
|
|
481
|
+
*/
|
|
482
|
+
readonly validToStr: string
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The certificate's serial number as a decimal string.
|
|
486
|
+
*
|
|
487
|
+
* This property is read-only.
|
|
488
|
+
*/
|
|
489
|
+
readonly serialDecimal: string
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Can be set to the PIN value for a certificate / private key stored on a smart card.
|
|
493
|
+
*/
|
|
494
|
+
smartCardPin: string
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* If set to `true`, then no dialog will automatically popup if the SmartCardPin is incorrect.
|
|
498
|
+
* Instead, the method requiring the private key on the smart card will fail. The default value of
|
|
499
|
+
* this property is `false`, which means that if the SmartCardPin property is incorrect, a dialog
|
|
500
|
+
* with prompt will be displayed.
|
|
501
|
+
*/
|
|
502
|
+
smartCardNoDialog: boolean
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Returns a string containing a comma separated list of keywords with the extended key usages of
|
|
506
|
+
* the certificate. The list of possible extended key usages are:
|
|
507
|
+
*
|
|
508
|
+
* - serverAuth - TLS WWW server authentication
|
|
509
|
+
*
|
|
510
|
+
* - clientAuth - TLS WWW client authentication
|
|
511
|
+
*
|
|
512
|
+
* - codeSigning - Signing of downloadable executable code
|
|
513
|
+
*
|
|
514
|
+
* - emailProtection - Email protection
|
|
515
|
+
*
|
|
516
|
+
* - timeStamping - Binding the hash of an object to a time
|
|
517
|
+
*
|
|
518
|
+
* - OCSPSigning - Signing OCSP responses
|
|
519
|
+
*
|
|
520
|
+
* This property is read-only.
|
|
521
|
+
*/
|
|
522
|
+
readonly extendedKeyUsage: string
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* The subject alternative name (SAN) name of the certificate returned as XML. See the examples
|
|
526
|
+
* linked below.
|
|
527
|
+
*
|
|
528
|
+
* This property is read-only.
|
|
529
|
+
*/
|
|
530
|
+
readonly subjectAlternativeName: string
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* This is a catch-all property to be used for uncommon needs. This property defaults to the empty
|
|
534
|
+
* string, and should typically remain empty. Possible comma separated keywords can include:
|
|
535
|
+
*
|
|
536
|
+
* - `CheckRevokedCacheOnly`: Added in `v11.2.0`. In the `CheckRevoked` method, prevents network
|
|
537
|
+
* access and only checks the cached revocation information on the local computer.
|
|
538
|
+
*/
|
|
539
|
+
uncommonOptions: string
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Set after calling LoadFromSmartcard. Possible values are:
|
|
543
|
+
*
|
|
544
|
+
* - 0 - No failure. The call to LoadFromSmartcard was successful.
|
|
545
|
+
*
|
|
546
|
+
* - 1 - No smartcard or USB token was detected.
|
|
547
|
+
*
|
|
548
|
+
* - 2 - The SmartCardPin was provided and the PIN login failed. (Note: Chilkat only PIN
|
|
549
|
+
* authenticates if PKCS11 was the chosen means for communicating with the smartcard.)
|
|
550
|
+
*
|
|
551
|
+
* - 3 - The certificate matching the specified criteria was not found.
|
|
552
|
+
*
|
|
553
|
+
* - 99 - Some other undefined failure. Consult the LastErrorText for more information.
|
|
554
|
+
*
|
|
555
|
+
* This property is read-only.
|
|
556
|
+
*/
|
|
557
|
+
readonly smartCardFailReason: number
|
|
558
|
+
|
|
559
|
+
// ---- Methods ----
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Returns 1 if the certificate has been revoked, 0 if not revoked, and -1 if unable to check the
|
|
563
|
+
* revocation status.
|
|
564
|
+
*
|
|
565
|
+
* **Note:** This method is only implemented on Windows systems. It uses the underlying Microsoft
|
|
566
|
+
* CertVerifyRevocation Platform SDK function to check the revocation status of a certificate.
|
|
567
|
+
* (Search `CertVerifyRevocation` to get information about it.) Starting in `v11.2.0`, the keyword
|
|
568
|
+
* `"CheckRevokedCacheOnly"` can be included in the `UncommonOptions` to prevent the Microsoft
|
|
569
|
+
* revocation handler from
|
|
570
|
+
* accessing any network based resources for revocation checking. In other words, just check the
|
|
571
|
+
* cached revocation information on the local computer.
|
|
572
|
+
*
|
|
573
|
+
* Non-Windows (and Windows) applications can send an OCSP request as shown in the example below.
|
|
574
|
+
*/
|
|
575
|
+
checkRevoked(): number
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Exports the digital certificate to ASN.1 DER format binary file.
|
|
579
|
+
*
|
|
580
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
581
|
+
* {@link Cert.lastErrorText}.
|
|
582
|
+
*/
|
|
583
|
+
exportCertDerFile(path: string): void
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Exports the digital certificate to an unencrypted PEM formatted string.
|
|
587
|
+
*
|
|
588
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
589
|
+
* {@link Cert.lastErrorText}.
|
|
590
|
+
*/
|
|
591
|
+
exportCertPem(): string
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Exports the digital certificate to an unencrypted PEM formatted file.
|
|
595
|
+
*
|
|
596
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
597
|
+
* {@link Cert.lastErrorText}.
|
|
598
|
+
*/
|
|
599
|
+
exportCertPemFile(path: string): void
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Exports a certificate to an XML format where the XML tags are the names of the ASN.1 objects
|
|
603
|
+
* that compose the X.509 certificate. Binary data is either hex or base64 encoded. (The binary
|
|
604
|
+
* data for a `bits` ASN.1 tag is hex encoded, whereas for all other ASN.1 tags, such as `octets`,
|
|
605
|
+
* it is base64.)
|
|
606
|
+
*
|
|
607
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
608
|
+
* {@link Cert.lastErrorText}.
|
|
609
|
+
*/
|
|
610
|
+
exportCertXml(): string
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Exports the certificate and private key (if available) to a PFX (.pfx or .p12) file. The output
|
|
614
|
+
* PFX is secured using the `pfxPassword`. If `bIncludeCertChain` is `true`, then the certificates
|
|
615
|
+
* in the chain of authority are also included in the PFX output file.
|
|
616
|
+
*
|
|
617
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
618
|
+
* {@link Cert.lastErrorText}.
|
|
619
|
+
*/
|
|
620
|
+
exportToPfxFile(pfxFilename: string, pfxPassword: string, bIncludeCertChain: boolean): void
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Finds and returns the issuer certificate. If the certificate is a root or self-issued, then the
|
|
624
|
+
* certificate returned is a copy of the caller certificate. (The IsRoot property can be check to
|
|
625
|
+
* see if the certificate is a root (or self-issued) certificate.)
|
|
626
|
+
*
|
|
627
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
628
|
+
* {@link Cert.lastErrorText}.
|
|
629
|
+
*/
|
|
630
|
+
findIssuer(): Cert
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Returns a base64 encoded string representation of the certificate's binary DER format, which
|
|
634
|
+
* can be passed to SetFromEncoded to recreate the certificate object.
|
|
635
|
+
*
|
|
636
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
637
|
+
* {@link Cert.lastErrorText}.
|
|
638
|
+
*/
|
|
639
|
+
getEncoded(): string
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Returns the certificate extension data in XML format (converted from ASN.1). The `oid` is an
|
|
643
|
+
* OID, such as the ones listed here: <http://www.alvestrand.no/objectid/2.5.29.html>
|
|
644
|
+
*
|
|
645
|
+
* Note: In many cases, the data within the XML is returned base64 encoded. An application may
|
|
646
|
+
* need to take one further step to base64 decode the information contained within the XML.
|
|
647
|
+
*
|
|
648
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
649
|
+
* {@link Cert.lastErrorText}.
|
|
650
|
+
*/
|
|
651
|
+
getExtensionAsXml(oid: string): string
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Exports the certificate's private key to a PEM string (if the private key is available).
|
|
655
|
+
*
|
|
656
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
657
|
+
* {@link Cert.lastErrorText}.
|
|
658
|
+
*/
|
|
659
|
+
getPrivateKeyPem(): string
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Returns the SPKI Fingerprint suitable for use in pinning. (See RFC 7469.) An SPKI Fingerprint
|
|
663
|
+
* is defined as the output of a known cryptographic hash algorithm whose input is the DER-encoded
|
|
664
|
+
* ASN.1 representation of the Subject Public Key Info (SPKI) of an X.509 certificate. The
|
|
665
|
+
* `hashAlg` specifies the hash algorithm and may be `sha256`, `sha384`, `sha512`, `sha1`, `md2`,
|
|
666
|
+
* `md5`, `haval`, `ripemd128`, `ripemd160`,`ripemd256`, or `ripemd320`. The `encoding` specifies
|
|
667
|
+
* the encoding, and may be `base64`, `hex`, or any of the encoding modes specified in the article
|
|
668
|
+
* at the link below.
|
|
669
|
+
*
|
|
670
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
671
|
+
* {@link Cert.lastErrorText}.
|
|
672
|
+
*/
|
|
673
|
+
getSpkiFingerprint(hashAlg: string, encoding: string): string
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Returns `true` if a private key associated with the certificate is available.
|
|
677
|
+
*/
|
|
678
|
+
hasPrivateKey(): boolean
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* This method searches for a certificate with the specified common name (CN) on different
|
|
682
|
+
* operating systems.
|
|
683
|
+
*
|
|
684
|
+
* - On `Windows`, it searches the `Local Machine` and `Current User` certificate stores.
|
|
685
|
+
* - On `macOS` and `iOS`, it searches the Default and System `Keychains`.
|
|
686
|
+
*
|
|
687
|
+
* If the certificate is found, it is loaded and ready for use.
|
|
688
|
+
*
|
|
689
|
+
* Note: Chilkat v10.0.0 or later is needed for Apple Keychain.
|
|
690
|
+
*
|
|
691
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
692
|
+
* {@link Cert.lastErrorText}.
|
|
693
|
+
*/
|
|
694
|
+
loadByCommonName(cn: string): void
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* This method searches for a certificate with the specified email address on different operating
|
|
698
|
+
* systems.
|
|
699
|
+
*
|
|
700
|
+
* - On `Windows`, it searches the `Local Machine` and `Current User` certificate stores.
|
|
701
|
+
* - On `macOS` and `iOS`, it searches the Default and System `Keychains`.
|
|
702
|
+
*
|
|
703
|
+
* If the certificate is found, it is loaded and ready for use.
|
|
704
|
+
*
|
|
705
|
+
* Note: Chilkat v10.0.0 or later is needed for Apple Keychain.
|
|
706
|
+
*
|
|
707
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
708
|
+
* {@link Cert.lastErrorText}.
|
|
709
|
+
*/
|
|
710
|
+
loadByEmailAddress(emailAddress: string): void
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* This method searches for a certificate with the specified issuer common name (`issuerCN`) and
|
|
714
|
+
* serial number (`serialNumber`) on different operating systems.
|
|
715
|
+
*
|
|
716
|
+
* - On `Windows`, it searches the `Local Machine` and `Current User` certificate stores.
|
|
717
|
+
* - On `macOS` and `iOS`, it searches the Default and System `Keychains`.
|
|
718
|
+
*
|
|
719
|
+
* If the certificate is found, it is loaded and ready for use.
|
|
720
|
+
*
|
|
721
|
+
* Note: Chilkat v10.0.0 or later is needed for Apple Keychain.
|
|
722
|
+
*
|
|
723
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
724
|
+
* {@link Cert.lastErrorText}.
|
|
725
|
+
*/
|
|
726
|
+
loadByIssuerAndSerialNumber(issuerCN: string, serialNumber: string): void
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Loads an ASN.1 or DER encoded certificate represented in a Base64 string.
|
|
730
|
+
*
|
|
731
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
732
|
+
* {@link Cert.lastErrorText}.
|
|
733
|
+
*/
|
|
734
|
+
loadFromBase64(encodedCert: string): void
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Loads a certificate from a .cer, .crt, .p7b, or .pem file. This method accepts certificates
|
|
738
|
+
* from files in any of the following formats:
|
|
739
|
+
*
|
|
740
|
+
* 1. DER encoded binary X.509 (.CER)
|
|
741
|
+
* 2. Base-64 encoded X.509 (.CER)
|
|
742
|
+
* 3. Cryptographic Message Syntax Standard - PKCS #7 Certificates (.P7B)
|
|
743
|
+
* 4. PEM format
|
|
744
|
+
* This method decodes the certificate based on the contents if finds within the file, and not
|
|
745
|
+
* based on the file extension. If your certificate is in a file having a different extension,
|
|
746
|
+
* try loading it using this method before assuming it won't work. This method does not load
|
|
747
|
+
* .p12 or .pfx (PKCS #12) files.
|
|
748
|
+
*
|
|
749
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
750
|
+
* {@link Cert.lastErrorText}.
|
|
751
|
+
*/
|
|
752
|
+
loadFromFile(path: string): void
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Loads the certificate from a PEM string.
|
|
756
|
+
*
|
|
757
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
758
|
+
* {@link Cert.lastErrorText}.
|
|
759
|
+
*/
|
|
760
|
+
loadPem(strPem: string): void
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Loads a PFX file. Note: If the PFX contains multiple certificates, the 1st certificate in the
|
|
764
|
+
* PFX is loaded.
|
|
765
|
+
*
|
|
766
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
767
|
+
* {@link Cert.lastErrorText}.
|
|
768
|
+
*/
|
|
769
|
+
loadPfxFile(pfxPath: string, password: string): void
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Converts a PEM file to a DER file.
|
|
773
|
+
*
|
|
774
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
775
|
+
* {@link Cert.lastErrorText}.
|
|
776
|
+
*/
|
|
777
|
+
pemFileToDerFile(fromPath: string, toPath: string): void
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Saves a certificate object to a .cer file.
|
|
781
|
+
*
|
|
782
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
783
|
+
* {@link Cert.lastErrorText}.
|
|
784
|
+
*/
|
|
785
|
+
saveToFile(path: string): void
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Initializes the certificate object from a base64 encoded string representation of the
|
|
789
|
+
* certificate's binary DER format.
|
|
790
|
+
*
|
|
791
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
792
|
+
* {@link Cert.lastErrorText}.
|
|
793
|
+
*/
|
|
794
|
+
setFromEncoded(encodedCert: string): void
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Used to associate a private key with the certificate for subsequent (PKCS7) signature creation
|
|
798
|
+
* or decryption.
|
|
799
|
+
*
|
|
800
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
801
|
+
* {@link Cert.lastErrorText}.
|
|
802
|
+
*/
|
|
803
|
+
setPrivateKey(privKey: PrivateKey): void
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Same as SetPrivateKey, but the key is provided in unencrypted PEM format. (Note: The
|
|
807
|
+
* `privKeyPem` is not a file path, it is the actual PEM text.)
|
|
808
|
+
*
|
|
809
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
810
|
+
* {@link Cert.lastErrorText}.
|
|
811
|
+
*/
|
|
812
|
+
setPrivateKeyPem(privKeyPem: string): void
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Adds an XML certificate vault to the object's internal list of sources to be searched for
|
|
816
|
+
* certificates for help in building certificate chains and verifying the certificate signature to
|
|
817
|
+
* the trusted root.
|
|
818
|
+
*
|
|
819
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
820
|
+
* {@link Cert.lastErrorText}.
|
|
821
|
+
*/
|
|
822
|
+
useCertVault(vault: XmlCertVault): void
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Verifies the certificate signature, as well as the signatures of all certificates in the chain
|
|
826
|
+
* of authentication to the trusted root. Returns `true` if all signatures are verified to the
|
|
827
|
+
* trusted root. Otherwise returns `false`.
|
|
828
|
+
*/
|
|
829
|
+
verifySignature(): boolean
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Exports the certificate and private key (if available) to `pfxData`. The `password` is what
|
|
833
|
+
* will be required to access the PFX contents at a later time. If `includeCertChain` is `true`,
|
|
834
|
+
* then the certificates in the chain of authority are also included in the PFX.
|
|
835
|
+
*
|
|
836
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
837
|
+
* {@link Cert.lastErrorText}.
|
|
838
|
+
*/
|
|
839
|
+
exportToPfxBd(password: string, includeCertChain: boolean, pfxData: BinData): void
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Exports the digital certificate in ASN.1 DER format to a BinData object.
|
|
843
|
+
*
|
|
844
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
845
|
+
* {@link Cert.lastErrorText}.
|
|
846
|
+
*/
|
|
847
|
+
exportCertDerBd(cerData: BinData): void
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Loads the certificate from the PFX contained in `pfxData`. Note: If the PFX contains multiple
|
|
851
|
+
* certificates, the 1st certificate in the PFX is loaded.
|
|
852
|
+
*
|
|
853
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
854
|
+
* {@link Cert.lastErrorText}.
|
|
855
|
+
*/
|
|
856
|
+
loadPfxBd(pfxData: BinData, password: string): void
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Loads an X.509 certificate from data contained in `certBytes`.
|
|
860
|
+
*
|
|
861
|
+
* **Note:** The `certBytes` may contain the certificate in any format. It can be binary DER
|
|
862
|
+
* (ASN.1), PEM, Base64, etc. Chilkat will automatically detect the format.
|
|
863
|
+
*
|
|
864
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
865
|
+
* {@link Cert.lastErrorText}.
|
|
866
|
+
*/
|
|
867
|
+
loadFromBd(certBytes: BinData): void
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Returns an encoded hash of a particular part of the certificate. The `part` may be one of the
|
|
871
|
+
* following:
|
|
872
|
+
*
|
|
873
|
+
* - IssuerDN
|
|
874
|
+
*
|
|
875
|
+
* - IssuerPublicKey
|
|
876
|
+
*
|
|
877
|
+
* - SubjectDN
|
|
878
|
+
*
|
|
879
|
+
* - SubjectPublicKey
|
|
880
|
+
*
|
|
881
|
+
* The `hashAlg` is the name of the hash algorithm, such as `sha1`, `sha256`, `sha384`, `sha512`,
|
|
882
|
+
* `md5`, etc. The `encoding` is the format to return, such as `hex`, `base64`, etc.
|
|
883
|
+
*
|
|
884
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
885
|
+
* {@link Cert.lastErrorText}.
|
|
886
|
+
*/
|
|
887
|
+
hashOf(part: string, hashAlg: string, encoding: string): string
|
|
888
|
+
|
|
889
|
+
/**
|
|
890
|
+
* Verifies that the SmartCardPin property setting is correct. Returns 1 if correct, 0 if
|
|
891
|
+
* incorrect, and -1 if unable to check because the underlying CSP does not support the
|
|
892
|
+
* functionality.
|
|
893
|
+
*/
|
|
894
|
+
checkSmartCardPin(): number
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Returns the base64 representation of an X509PKIPathv1 containing just the calling certificate.
|
|
898
|
+
* This is typically used in an X.509 Binary Security Token. It is a PKIPath that contains an
|
|
899
|
+
* ordered list of X.509 public certificates packaged in a PKIPath. The X509PKIPathv1 token type
|
|
900
|
+
* may be used to represent a certificate path. (This is sometimes used in XAdES signatures.)
|
|
901
|
+
*
|
|
902
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
903
|
+
* {@link Cert.lastErrorText}.
|
|
904
|
+
*/
|
|
905
|
+
x509PKIPathv1(): string
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* **Important:** It's important to set the SmartCardPin property **before** calling this method.
|
|
909
|
+
*
|
|
910
|
+
* Loads a certificate and its associated private key (if available) from a connected USB token or
|
|
911
|
+
* smart card. This function works on Windows, Linux, MacOS, iOS, and Alpine Linux. If multiple
|
|
912
|
+
* USB tokens and/or smartcards are connected to the system, then each will be searched and the
|
|
913
|
+
* first matching certificate will be loaded.
|
|
914
|
+
*
|
|
915
|
+
* The `certSpec` can have the following formats and values:
|
|
916
|
+
*
|
|
917
|
+
* - **Empty String**: Passing the empty string is the most common way to call this function. Pass
|
|
918
|
+
* the empty string when only one HSM (USB token or smart card) is connected to the system, and
|
|
919
|
+
* it contains only one certificate with a private key. The HSM can contain other certificates,
|
|
920
|
+
* but Chilkat will automatically choose and load the certificate that has the associated
|
|
921
|
+
* private key also located on the HSM.
|
|
922
|
+
*
|
|
923
|
+
* - **cn=\<cert subject common name\>**: Finds and loads the certificate having the specified
|
|
924
|
+
* subject common name (CN).
|
|
925
|
+
*
|
|
926
|
+
* - **subjectdn_withtags=\<distinguished name with tags\>**: Finds and loads the certificate
|
|
927
|
+
* having the specified DN with tags. For example, subjectdn_withtags=C=US, O=Example
|
|
928
|
+
* Corporation, OU=IT Department, CN=www.example.com
|
|
929
|
+
*
|
|
930
|
+
* - **subjectdn=\<distinguished name without tags\>**: Finds and loads the certificate having the
|
|
931
|
+
* specified DN without tags. For example, subjectdn=US, California, San Francisco, Example
|
|
932
|
+
* Corp, Engineering, www.example.com, support@example.com
|
|
933
|
+
*
|
|
934
|
+
* - **issuercn=\<subject hex serial:issuer common name\>**: Finds and loads the certificate
|
|
935
|
+
* having the specified hex serial number and an issuer with the specified common name. For
|
|
936
|
+
* example, `01020304: Let's Encrypt Authority X1`
|
|
937
|
+
*
|
|
938
|
+
* - **serial=\<hex serial number\>**: Finds and loads the certificate having the specified
|
|
939
|
+
* hexidecimal serial number.
|
|
940
|
+
*
|
|
941
|
+
* - **thumbprint=\<hex SHA1 thumbprint\>**: Finds and loads the certificate having the specified
|
|
942
|
+
* hexidecimal SHA1 thumbprint.
|
|
943
|
+
*
|
|
944
|
+
* - **policyoid=\<certificate policy OID\>**: Finds and loads the certificate having a policy OID
|
|
945
|
+
* equal to the specified value, such as 2.16.840.1.101.2.1.11.39.
|
|
946
|
+
*
|
|
947
|
+
* - **o=\<subject organization\>**: Finds and loads the certificate having the `O` subject part
|
|
948
|
+
* equal to the specified value.
|
|
949
|
+
*
|
|
950
|
+
* - **c=\<subject country\>**: Finds and loads the certificate having the `C` subject part equal
|
|
951
|
+
* to the specified value.
|
|
952
|
+
*
|
|
953
|
+
* - **l=\<subject locality\>**: Finds and loads the certificate having the `L` subject part equal
|
|
954
|
+
* to the specified value.
|
|
955
|
+
*
|
|
956
|
+
* - **ou=\<subject organizational unit\>**: Finds and loads the certificate having the `OU`
|
|
957
|
+
* subject part equal to the specified value.
|
|
958
|
+
*
|
|
959
|
+
* - **st=\<subject state\>**: Finds and loads the certificate having the `ST` subject part equal
|
|
960
|
+
* to the specified value.
|
|
961
|
+
*
|
|
962
|
+
* - **e=\<subject email\>**: Finds and loads the certificate having the `E` subject part equal to
|
|
963
|
+
* the specified value.
|
|
964
|
+
*
|
|
965
|
+
* On Windows systems, `certSpec` can specify a CSP (Cryptographic Service Provider) name, such as
|
|
966
|
+
* `YubiHSM Key Storage Provider.` This option is retained for legacy support, as Chilkat
|
|
967
|
+
* initially handled USB tokens and smartcards only on Windows via CSPs. Chilkat now supports HSMs
|
|
968
|
+
* across multiple platforms (Windows, Linux, macOS, iOS, Alpine Linux) and uses various methods
|
|
969
|
+
* to communicate with HSMs, including PKCS11, macOS Keychain services, Windows ScMinidriver,
|
|
970
|
+
* MsCNG, and legacy Windows CryptoAPI. Chilkat automatically detects the HSM make/model and
|
|
971
|
+
* selects the optimal communication method.
|
|
972
|
+
*
|
|
973
|
+
* Some possible CSP values are:
|
|
974
|
+
*
|
|
975
|
+
* - Microsoft Smart Card Key Storage Provider
|
|
976
|
+
*
|
|
977
|
+
* - Microsoft Base Smart Card Crypto Provider
|
|
978
|
+
*
|
|
979
|
+
* - Bit4id Universal Middleware Provider
|
|
980
|
+
*
|
|
981
|
+
* - YubiHSM Key Storage Provider (starting in v9.5.0.83)
|
|
982
|
+
*
|
|
983
|
+
* - SafeSign Standard Cryptographic Service Provider
|
|
984
|
+
*
|
|
985
|
+
* - SafeSign Standard RSA and AES Cryptographic Service Provider
|
|
986
|
+
*
|
|
987
|
+
* - eToken Base Cryptographic Provider
|
|
988
|
+
*
|
|
989
|
+
* - cryptoCertum3 CSP
|
|
990
|
+
*
|
|
991
|
+
* - FTSafe ePass1000 RSA Cryptographic Service Provider
|
|
992
|
+
*
|
|
993
|
+
* - SecureStoreCSP
|
|
994
|
+
*
|
|
995
|
+
* - EnterSafe ePass2003 CSP v2.0
|
|
996
|
+
*
|
|
997
|
+
* - Gemalto Classic Card CSP
|
|
998
|
+
*
|
|
999
|
+
* - PROXKey CSP India V1.0
|
|
1000
|
+
*
|
|
1001
|
+
* - PROXKey CSP India V2.0
|
|
1002
|
+
*
|
|
1003
|
+
* - TRUST KEY CSP V1.0
|
|
1004
|
+
*
|
|
1005
|
+
* - Watchdata Brazil CSP V1.0
|
|
1006
|
+
*
|
|
1007
|
+
* - Luna Cryptographic Services for Microsoft Windows
|
|
1008
|
+
*
|
|
1009
|
+
* - Luna SChannel Cryptographic Services for Microsoft Windows
|
|
1010
|
+
*
|
|
1011
|
+
* - Safenet RSA Full Cryptographic Provider
|
|
1012
|
+
*
|
|
1013
|
+
* - nCipher Enhanced Cryptographic Provider
|
|
1014
|
+
*
|
|
1015
|
+
* - MySmartLogon NFC CSP
|
|
1016
|
+
*
|
|
1017
|
+
* - NFC Connector Enterprise
|
|
1018
|
+
*
|
|
1019
|
+
* - ActivClient Cryptographic Service Provider
|
|
1020
|
+
*
|
|
1021
|
+
* - EnterSafe ePass2003 CSP v1.0
|
|
1022
|
+
*
|
|
1023
|
+
* - Oberthur Card Systems Cryptographic Provider
|
|
1024
|
+
*
|
|
1025
|
+
* - Athena ASECard Crypto CSP
|
|
1026
|
+
*
|
|
1027
|
+
* - many others...
|
|
1028
|
+
*
|
|
1029
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1030
|
+
* {@link Cert.lastErrorText}.
|
|
1031
|
+
*/
|
|
1032
|
+
loadFromSmartcard(certSpec: string): void
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* This method searches for a certificate with the specified `thumbprint`. The `thumbprint` is
|
|
1036
|
+
* passed as a string using the encoding specified by `encoding` (such as `base64`, `hex`, etc.).
|
|
1037
|
+
*
|
|
1038
|
+
* On `Windows`, it searches the `Local Machine` and `Current User` certificate stores.
|
|
1039
|
+
*
|
|
1040
|
+
* - On `macOS` and `iOS`, it searches the Default and System `Keychains`.
|
|
1041
|
+
*
|
|
1042
|
+
* If the certificate is found, it is loaded and ready for use.
|
|
1043
|
+
*
|
|
1044
|
+
* Note: Chilkat v10.0.0 or later is needed for Apple Keychain.
|
|
1045
|
+
*
|
|
1046
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1047
|
+
* {@link Cert.lastErrorText}.
|
|
1048
|
+
*/
|
|
1049
|
+
loadByThumbprint(thumbprint: string, encoding: string): void
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* This method searches for a certificate containing a subject part matching the `oid` and
|
|
1053
|
+
* `value`.
|
|
1054
|
+
*
|
|
1055
|
+
* On `Windows`, it searches the `Local Machine` and `Current User` certificate stores.
|
|
1056
|
+
*
|
|
1057
|
+
* - On `macOS` and `iOS`, it searches the Default and System `Keychains`.
|
|
1058
|
+
*
|
|
1059
|
+
* If the certificate is found, it is loaded and ready for use.
|
|
1060
|
+
*
|
|
1061
|
+
* Note: Chilkat v10.0.0 or later is needed for Apple Keychain.
|
|
1062
|
+
*
|
|
1063
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1064
|
+
* {@link Cert.lastErrorText}.
|
|
1065
|
+
*/
|
|
1066
|
+
loadBySubjectOid(oid: string, value: string): void
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Returns a part of the certificate's subject by name or OID. The `partNameOrOid` can be a part
|
|
1070
|
+
* name, such as `CN`, `O`, `OU`, `E`, `S`, `L`, `C`, or `SERIALNUMBER`, or it can be an OID such
|
|
1071
|
+
* as `2.5.4.3`.
|
|
1072
|
+
*
|
|
1073
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1074
|
+
* {@link Cert.lastErrorText}.
|
|
1075
|
+
*/
|
|
1076
|
+
getSubjectPart(partNameOrOid: string): string
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Returns the certificate extension data as a string. This method should only be called for those
|
|
1080
|
+
* extensions with text values NOT stored as binary ASN.1. In most cases, applications should call
|
|
1081
|
+
* GetExtensionAsXml because most extensions contain ASN.1 values that need to be decoded..
|
|
1082
|
+
*
|
|
1083
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1084
|
+
* {@link Cert.lastErrorText}.
|
|
1085
|
+
*/
|
|
1086
|
+
getExtensionAsText(oid: string): string
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Loads the `bd` with the certificate's public key in ASN.1 DER format. If the key type (such as
|
|
1090
|
+
* RSA) supports both PKCS1 and PKCS8 formats, then `preferPkcs1` selects which format to return.
|
|
1091
|
+
*
|
|
1092
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1093
|
+
* {@link Cert.lastErrorText}.
|
|
1094
|
+
*/
|
|
1095
|
+
getPubKeyDer(preferPkcs1: boolean, bd: BinData): void
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Loads the `bd` with the certificate's signature.
|
|
1099
|
+
*
|
|
1100
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1101
|
+
* {@link Cert.lastErrorText}.
|
|
1102
|
+
*/
|
|
1103
|
+
getSignature(bd: BinData): void
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Returns the certificate extension data specified by `oid` in `bd`.
|
|
1107
|
+
*
|
|
1108
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1109
|
+
* {@link Cert.lastErrorText}.
|
|
1110
|
+
*/
|
|
1111
|
+
getExtensionBd(oid: string, bd: BinData): void
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* Links to the certificate's private key located on an HSM (smart card, token, or cloud HSM).
|
|
1115
|
+
* Once linked, the certificate can be used for signing where the signing occurs on the HSM. See
|
|
1116
|
+
* the example below for more detailed information.
|
|
1117
|
+
*
|
|
1118
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1119
|
+
* {@link Cert.lastErrorText}.
|
|
1120
|
+
*/
|
|
1121
|
+
linkPkcs11(session: Pkcs11): void
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* This is an open-ended method to accomodate uploading the private key to a cloud service, such
|
|
1125
|
+
* as AWS KMS, or Azure Key Vault. For details, see the examples below.
|
|
1126
|
+
*
|
|
1127
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1128
|
+
* {@link Cert.uploadToCloudAsync}.
|
|
1129
|
+
*
|
|
1130
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1131
|
+
* {@link Cert.lastErrorText}.
|
|
1132
|
+
*/
|
|
1133
|
+
uploadToCloud(jsonIn: JsonObject, jsonOut: JsonObject): void
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Asynchronous form of {@link Cert.uploadToCloud}: the same call on a native worker thread,
|
|
1137
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1138
|
+
* except {@link Cert.abort} (which cancels it) and the {@link Cert.onPercentDone} /
|
|
1139
|
+
* {@link Cert.onProgressInfo} callbacks, which report progress while it runs.
|
|
1140
|
+
*
|
|
1141
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1142
|
+
* {@link Cert.lastErrorText}.
|
|
1143
|
+
*/
|
|
1144
|
+
uploadToCloudAsync(jsonIn: JsonObject, jsonOut: JsonObject): Promise<void>
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Provides information for a cloud signing service to do the signing via a remote signing server.
|
|
1148
|
+
* Current supported services are AWS KMS, Azure Key Vault, and ARSS (Aruba Remote Signing
|
|
1149
|
+
* Service). See the examples below.
|
|
1150
|
+
*
|
|
1151
|
+
* This call blocks the JavaScript thread until Chilkat returns; from UI code prefer
|
|
1152
|
+
* {@link Cert.setCloudSignerAsync}.
|
|
1153
|
+
*
|
|
1154
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1155
|
+
* {@link Cert.lastErrorText}.
|
|
1156
|
+
*/
|
|
1157
|
+
setCloudSigner(json: JsonObject): void
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Asynchronous form of {@link Cert.setCloudSigner}: the same call on a native worker thread,
|
|
1161
|
+
* settling on the JavaScript thread. While it is pending, other calls on this object throw,
|
|
1162
|
+
* except {@link Cert.abort} (which cancels it) and the {@link Cert.onPercentDone} /
|
|
1163
|
+
* {@link Cert.onProgressInfo} callbacks, which report progress while it runs.
|
|
1164
|
+
*
|
|
1165
|
+
* The promise rejects with an Error if the call fails; the full log is in
|
|
1166
|
+
* {@link Cert.lastErrorText}.
|
|
1167
|
+
*/
|
|
1168
|
+
setCloudSignerAsync(json: JsonObject): Promise<void>
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Returns `true` if certificate is RSA-based (i.e. has an RSA key).
|
|
1172
|
+
*/
|
|
1173
|
+
isRsa(): boolean
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Returns `true` if certificate is ECDSA-based (i.e. has an ECDSA key).
|
|
1177
|
+
*/
|
|
1178
|
+
isEcdsa(): boolean
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* Unload the certificate, which could mean closing a PKCS11 session if the certificate was loaded
|
|
1182
|
+
* from a smart card.
|
|
1183
|
+
*
|
|
1184
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1185
|
+
* {@link Cert.lastErrorText}.
|
|
1186
|
+
*/
|
|
1187
|
+
unload(): void
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Loads the `privKey` with the certificate's private key, if it exists. Returns `false` if the
|
|
1191
|
+
* certificate has no associated private key.
|
|
1192
|
+
*
|
|
1193
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1194
|
+
* {@link Cert.lastErrorText}.
|
|
1195
|
+
*/
|
|
1196
|
+
getPrivateKey(privKey: PrivateKey): void
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Loads the `pubKey` with the certificate's public key.
|
|
1200
|
+
*
|
|
1201
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1202
|
+
* {@link Cert.lastErrorText}.
|
|
1203
|
+
*/
|
|
1204
|
+
getPublicKey(pubKey: PublicKey): void
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Finds and returns the issuer certificate in `issuer`. If the certificate is a root or
|
|
1208
|
+
* self-issued, then the certificate returned is a copy of the caller certificate. (The IsRoot
|
|
1209
|
+
* property can be check to see if the certificate is a root (or self-issued) certificate.)
|
|
1210
|
+
*
|
|
1211
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1212
|
+
* {@link Cert.lastErrorText}.
|
|
1213
|
+
*/
|
|
1214
|
+
getIssuer(issuer: Cert): void
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Builds the certificate chain in `certChain` containing all the certificates (including this
|
|
1218
|
+
* one), in the chain of authentication to the trusted root (if possible). If this certificate
|
|
1219
|
+
* object was loaded from a PFX, then the certiicates contained in the PFX are automatically
|
|
1220
|
+
* available for building the certificate chain. The UseCertVault method can be called to provide
|
|
1221
|
+
* additional certificates that might be required to build the cert chain. Finally, the
|
|
1222
|
+
* TrustedRoots object can be used to provide a way of making trusted root certificates available.
|
|
1223
|
+
*
|
|
1224
|
+
* Note: Returns `true` even if certificate chain is not completed to the root. The certificate
|
|
1225
|
+
* chain's ReachesRoot property can be examined to see if the chain was completed to the root.
|
|
1226
|
+
*
|
|
1227
|
+
* On Windows systems, the registry-based certificate stores are automatically consulted if needed
|
|
1228
|
+
* to locate intermediate or root certificates in the chain. Chilkat searches certificate stores
|
|
1229
|
+
* in the following order.
|
|
1230
|
+
* See [System Store
|
|
1231
|
+
* Locations](https://docs.microsoft.com/en-us/windows/desktop/seccrypto/system-store-locations)
|
|
1232
|
+
* for more information.
|
|
1233
|
+
*
|
|
1234
|
+
* - Current-User `CA` Certificate Store
|
|
1235
|
+
*
|
|
1236
|
+
* - Local-Machine `CA` Certificate Store
|
|
1237
|
+
*
|
|
1238
|
+
* - Current-User `Root` Certificate Store
|
|
1239
|
+
*
|
|
1240
|
+
* - Local-Machine `Root` Certificate Store
|
|
1241
|
+
*
|
|
1242
|
+
* - Current-User `MY` Certificate Store
|
|
1243
|
+
*
|
|
1244
|
+
* - Local-Machine `MY` Certificate Store
|
|
1245
|
+
*
|
|
1246
|
+
* - Current-User `ADDRESSBOOK` Certificate Store (if it exists)
|
|
1247
|
+
*
|
|
1248
|
+
* - Local-Machine `ADDRESSBOOK` Certificate Store (if it exists)
|
|
1249
|
+
*
|
|
1250
|
+
* @throws Error if the call fails (the message names the reason); the full log is in
|
|
1251
|
+
* {@link Cert.lastErrorText}.
|
|
1252
|
+
*/
|
|
1253
|
+
buildCertChain(certChain: CertChain): void
|
|
1254
|
+
|
|
1255
|
+
// ---- Events (ReactNativeGen_DESIGN.md §6) ----
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Called with the percent completed (0..100) while a long-running method runs, when Chilkat
|
|
1259
|
+
* can measure progress. Runs on the JavaScript thread, so it is only useful with the
|
|
1260
|
+
* `...Async` methods (during a synchronous call the thread is busy and the events arrive
|
|
1261
|
+
* after it returns). Assign `undefined` to remove.
|
|
1262
|
+
*/
|
|
1263
|
+
onPercentDone?: (pctDone: number) => void
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Called with a name/value pair of progress information while a long-running method runs
|
|
1267
|
+
* (what is reported depends on the class and method). Runs on the JavaScript thread; see
|
|
1268
|
+
* {@link Cert.onPercentDone}. Assign `undefined` to remove.
|
|
1269
|
+
*/
|
|
1270
|
+
onProgressInfo?: (name: string, value: string) => void
|
|
1271
|
+
|
|
1272
|
+
/**
|
|
1273
|
+
* Requests that the pending `...Async` call on this object stop at its next progress check.
|
|
1274
|
+
* The promise then rejects with Chilkat's abort error. Chilkat checks at least every
|
|
1275
|
+
* `heartbeatMs` milliseconds on the classes that have that property, so set it (e.g. 250)
|
|
1276
|
+
* for a responsive cancel. Harmless when nothing is pending.
|
|
1277
|
+
*/
|
|
1278
|
+
abort(): void
|
|
1279
|
+
}
|