I'm trying to generate a CA and SSL certificate for a IIS application using Powershell. It works as expected on Windows when I manually add the CA to the local machine certificate root store.
The problem is connecting from a smartphone, the iPhone refuse to recognize the CA when I try to install it.
This is the CA script:
$ca_certificate = New-SelfSignedCertificate -CertStoreLocation cert:\CurrentUser\My -NotAfter (Get-Date).AddDays(820) -DnsName 'VMS Certificate Authority' -KeyusageProperty All `
-KeyUsage CertSign, CRLSign, DigitalSignature -FriendlyName 'My CA' -KeyAlgorithm RSA -KeyLength 2048
Export-Certificate -Cert "Cert:\CurrentUser\My\$($ca_certificate.Thumbprint)" -FilePath "$PSScriptRoot\root-authority-public.cer"
I can install the profile on my iPhone but during the installation i get the warning message "The authenticity of "My CA" cannot be verified" and nothing else. After the installation the status is still "Not verified". There's nothing under General->About->Certificate Trust Settings (only trust store/asset version).
I managed to create a openssl CA and that is successfully added to the phone but not recognized by the application using the SSL certificate.
Does anyone have any experience with this?