Starting with an mTLS certificate
Issue of certificates
In any case, you need to download the archive with certificates. You can do this by going to
tab.The following files will be inside:
.cert
- Certificate, encrypted in base64.csr
- Certificate request.key
- Key, encrypted in base64.p12
- The Certificate & Key bundle, encrypted in PKCS#12
Using the built-in certificate
Move the .p12 file to the project
Generation of your .p12 certificate
To do this, you will need a key(.key) and certificate(.cert) file, download them
Generate .p12 with openSSL
openssl pkcs12 -legacy -export -out certificate.p12 -inkey key.key -in cert.certMove the .p12 file to the project
Using certificates for multiplatform application initialization
OneEntryApp.initialize(
host = "sample.oneentry.cloud",
path = "path/to/certificate.p12",
password = "password"
)
Using certificates for Swift application initialization
try OneEntryCore.shared.initialize(
host: "sample.oneentry.cloud",
certificate: "certificate",
password: "password",
bundle: .module
)
Last modified: 01 August 2025