Adding certificate to device keychain
I am trying to import certificate to device keychain which I am getting my API. I have used these reference to save received data in certificate format. references: (SecPKCS12Import returns different results on iOS 11 than on iOS 10)
and Add Certificate to IOS Keychain in Swift
By doing some modification inorder to add the certificate to keychain I have done below code: