2

I have:

  1. Company.cert.pem
  2. ca_cert.pem

and I am trying to perform a ssl connection.

I generated mykeystore.bks from these two files(tried any combinations) and use the java code from here Trusting all certificates using HttpClient over HTTPS - emmby responce. But all time I get the next error:

12-20 03:04:48.844: W/System.err(2087): javax.net.ssl.SSLProtocolException: Read error: ssl=0x2b6e50: Failure in SSL library, usually a protocol error
12-20 03:04:48.854: W/System.err(2087):     at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read(Native Method)
12-20 03:04:48.854: W/System.err(2087):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:788)
12-20 03:04:48.854: W/System.err(2087):     at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103)
12-20 03:04:48.854: W/System.err(2087):     at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191)
12-20 03:04:48.854: W/System.err(2087):     at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:82)

*

  1. http://developer.android.com/reference/org/apache/http/conn/ssl/SSLSocketFactory.html

It seems that Android team proposes another approach for this purpose - but for me it's not clear.

Community
  • 1
  • 1
pvllnspk
  • 5,667
  • 12
  • 59
  • 97

0 Answers0