I want to implement SSL-pinning in my application: iOS device communicates with external device via websockets. I generated SSL self-signed certificate in PEM format (with all new requirements from here https://support.apple.com/en-us/HT210176). One copy of certificate was uploaded to extenal device firmware, and another copy was placed in app bundle. I have some troubles establishing secure communication via TLS, and my concerns are that certificate should be in DER format.
Could someone please confirm that, because it's not clear from Apple's documentation.