Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8334829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:28:29+00:00 2026-06-09T03:28:29+00:00

I am calling a REST service using HTTPS on an android application. I already

  • 0

I am calling a REST service using HTTPS on an android application. I already have working code for this, but now that I am using a newly installed server hosting the REST service I can no longer establish a connection.

Here is the exception:

javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x15b7768: Failure in SSL library, usually a protocol error
error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol (external/openssl/ssl/s23_clnt.c:683 0x402e5cc3:0x00000000)

The application use the Apache classes to interact with the REST service. I get this error even when using a dummy TrustManager that accepts any kind of certificate.

When calling the REST Service from the Android Navigator, the connection is successfully established and works fine.

The Android phone is running the latest 4.0.3 Android from HTC.

The REST Service is a hosted mod_perl application on Apache configured with SSL support.

Browsing the OpenSSL source code at https://github.com/android/platform_external_openssl/blob/ics-mr0/ssl/s23_clnt.c does not give me any hints besides a low level problem.

Any suggestion of how to debug this further ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:28:31+00:00Added an answer on June 9, 2026 at 3:28 am

    Ok I found what the problem is.

    Following the suggestion to use OpenSSL s_client it made me realize that I use the wrong port number for the connection. The new server is using the standard SSL port which was not the case for the other server I was using previously.

    As the server was not responding according to the SSL protocol, the response could not be decoded meaningfully by OpenSSL and thus the Unknown Protocol Error.

    For the people wanting to know how I used OpenSSL s_client (in your shell do):

    $ openssl s_client -connect myhost.example.com:443 -tls1 -servername myhost.example.com
    

    The -servername option enlists Server Name Indication (SNI) to ensure the server provides the correct certificate if there are multiple sites hosted at the server. SNI is a TLS 1.0 (and above) option, and -tls1_1 and -tls1_2 usually work, too.

    Then a truck load of information is shown regarding the SSL connection just opened.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have stand alone Java Application with Spring 3.0. I am calling REST service
I have created a REST Web Service that in all other ways is working
I have constructed a simple Rest service using ServiceStack (which is brilliant), that returns
I have a WCF service implemented using the WebServiceHostFactory (REST). I'm calling a service
I have a WCF REST-service that is used by a mobile application used in
I am currently working on a WCF application that consumes a Rails REST Service.
When I am calling a REST service through AJAX, its working fine. I am
I have a REST service that's reasonably complete and will be used with an
I have a Spring MVC and Resteasy based REST service that i need to
I'm getting this error when calling a java web service. I'm using the same

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.