React Native Requires Chilkat v11.0.0+
React Native
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat React Native Downloads
import { Cert, Http } from '@chilkat/react-native'
async function chilkatExample() {
const http = new Http();
const cert = new Cert();
try {
await http.getServerCertAsync('chilkatsoft.com', 443, cert);
} catch {
console.log(http.lastErrorText);
return;
}
console.log(cert.subjectDN);
console.log(cert.validToStr);
// Output:
// CN=*.chilkatsoft.com
// Wed, 10 Jun 2026 23:59:59 GMT
}