lib/apns_simple/client.rb in apns_simple-0.3.1 vs lib/apns_simple/client.rb in apns_simple-0.4.0

- old
+ new

@@ -29,9 +29,10 @@ end def push(notification) begin ctx = OpenSSL::SSL::SSLContext.new + ctx.ssl_version = :TLSv1_2 ctx.key = OpenSSL::PKey::RSA.new(certificate, passphrase) ctx.cert = OpenSSL::X509::Certificate.new(certificate) sock = TCPSocket.new(host, port) ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx) \ No newline at end of file