Sign mobileconfig file using certificate programmatically with Swift

233 views Asked by At

my question is how to programmatically sign the configuration file before downloading the file from the local server? I have a file of type .mobileconfig and a certificate file of type .pem with a key received from Zerossl. There are 3 chain certificates

-----BEGIN CERTIFICATE——
//some symbols
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE——
//some symbols
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE——
//some symbols
-----END CERTIFICATE-----

I manage to sign the certificate locally on the computer using terminal commands, but in my case I need to do it programmatically in Swift inside the app.

Could somebody please help me with it?

Here how to sign the certificate using common line tool: here or here

0

There are 0 answers