thanks all! Finally I got it! the reason is that the libcrypto and libssl that I complie is not matched. oh my god! This issue took me 24 hours!?------------------------------------------------------------------????Viktor Dukhovni <openssl-users at dukhovni.org>?????2016?9?14?(???) 00:02????openssl-users <openssl-users at openssl.org>????Re: [openssl-users] ??? ??? [help]SSL_CTX_use_certificate_file failed! On?Tue,?Sep?13,?2016?at?11:59:06PM?+0800,?zy_chongqing?wrote: >?Only?this?one?certificate,?acutually?this?file?is?used?for?the?iOS?APNs >?function.the?weird?thing?is,?I?use?the?same?file?and?same?code?on?other >?2?server,?it?work?well.?That?is?really?confused?me. Then?perhaps?the?copy?of?the?file?on?the?problem?server?is?corrupted somehow.??Or?the?OpenSSL?libraries?on?the?problem?server?are?damaged. I'm?afraid?you'll?have?to?figure?out?how?the?servers?differ. --? ?Viktor. --? openssl-users?mailing?list To?unsubscribe:?https://mta.openssl.org/mailman/listinfo/openssl-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20160914/84fed678/attachment.html>