React Native
React Native
Require that the Web Server's SSL Certificate is Non-Expired and the Signature is Valid
Demonstrates setting the RequireSslCertVerify property to require that the web server's SSL/TLS certificate is non-expired and that the certificate's signature is valid.Chilkat React Native Downloads
import { Http } from '@chilkat/react-native'
async function chilkatExample() {
// This example assumes the Chilkat HTTP API to have been previously unlocked.
// See Global Unlock Sample for sample code.
const url = 'https://chilkatsoft.com';
const http = new Http();
http.requireSslCertVerify = true;
let html: string;
try {
html = await http.quickGetStrAsync(url);
} catch {
console.log(http.lastErrorText);
return;
}
console.log('Success.');
}