Not able to enroll iPhone in MDM in iOS 14 with Self signed certificate

I have installed iOS14 on my iPhone and trying to enroll to a MDM server which has self signed certificate. The enrollment is throwing out an error that the server certificate is invalid.

I have already installed the trust profile which has the certificate and enable full trust under General - About - Certificate Trust Store settings.

The same device enrolls well when the device is on iOS 13.x but fails to enroll with iOS14.
Not able to enroll iPhone in MDM in iOS 14 with Self signed certificate
 
 
Q