How to play a m3u8 media on a self-signed certificate server?

How to play a m3u8 media on a self-signed certificate server? Is there any way to trust all server certificate in AVFoundation framework?
How to play a m3u8 media on a self-signed certificate server?
 
 
Q