React Native
React Native
Example: Crypt2.SetSigningCert method
Demonstrates how to call the SetSigningCert method.Chilkat React Native Downloads
import { Cert, Crypt2 } from '@chilkat/react-native'
function chilkatExample() {
// Signing certificates can be obtained from many different sources..
// Load from a PFX
const cryptA = new Crypt2();
const certA = new Cert();
certA.loadPfxFile('c:/someDir/pfx_files/a.pfx', 'pfx_file_password');
cryptA.setSigningCert(certA);
// ...
// Load from a smart card or USB token.
const cryptB = new Crypt2();
const certB = new Cert();
certB.smartCardPin = '123456';
certB.loadFromSmartcard('');
cryptB.setSigningCert(certB);
// ...
// Load from a the Windows certificate store or macOS keychain
const cryptC = new Crypt2();
const certC = new Cert();
certC.loadByCommonName('Xyz 123');
cryptC.setSigningCert(certC);
// ...
}