0 Replies Latest reply on Oct 22, 2016 8:42 AM by martinb77004568

    openssl 1.1.0 and iOS push

    martinb77004568 Level 2

      Hi,

       

      I have been creating push certificates for iOS using my windows 10 computer for a long time now. Today, I upgraded from openssl 1.0.2j to 1.1.0b. For some reason, it seems like I cannot generate the files anymore. When trying to push, I get a response like

      Warning: stream_socket_client() [function.stream-socket-client0]: Unable to set private key file
      

       

      This only happens when using a .pem file generated with openssl 1.1.0. Using 1.0.2 to create it works fine. The following commands worked in openssl 1.0.2:

       

      C:\OpenSSL-Win32\bin\openssl genrsa -out request.key 2048
      C:\OpenSSL-Win32\bin\openssl req -new -key request.key -out request.certSigningRequest
      

       

      (Now, upload it to the Apple Developer Website and get the .cer file)

       

      C:\OpenSSL-Win32\bin\openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM
      C:\OpenSSL-Win32\bin\openssl pkcs12 -export -in aps.pem -inkey request.key -out aps.p12 -name apns-cert
      C:\OpenSSL-Win32\bin\openssl pkcs12 -nocerts -out aps_nocerts.pem -in aps.p12
      type aps_nocerts.pem aps.pem > apns_cert.pem
      

       

      Have you experienced the same? What can I do to make it work like it used to in 1.0.2j?