Hello everyone, 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?