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

- old
+ new

@@ -28,11 +28,10 @@ @host, @port = parse_gateway_uri(gateway_uri) end def push(notification) begin - ctx = OpenSSL::SSL::SSLContext.new - ctx.ssl_version = :TLSv1_2 + ctx = OpenSSL::SSL::SSLContext.new(:TLSv1) 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