Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL certificate for REST web services (used by Android)?

I have a website with a number of RESTful web services that are used by an Android app. I want to let all requests go through HTTPS. Hence, I need an SSL certificate for my website.

Q: Do I need to buy an SSL certificate or can I use a self-signed certificate in this case? (I don't want to waste money on something I don't need.)

I can think of these approaches:

  1. Buy an SSL certificate with Extended Validation (green address bar). Probably not necessary.
  2. Buy an SSL certificate without Extended Validation. This should suffice, no?
  3. Self-sign an SSL certificate. Not sure what this implies?
like image 773
l33t Avatar asked Jan 29 '12 23:01

l33t


People also ask

What is SSL certificate in Android?

SSL (Secure socket layer) Certificate Pinning, or pinning for short, is the process of associating a host with its certificate or public key. Once you know a host's certificate or public key, you pin it to that host.

What is SSL certificate in REST API?

The primary reason for using Secure Sockets Layer (SSL) certificates is to keep sensitive information sent across the internet encrypted so that only the intended recipient can understand it.

Does REST API use SSL?

By default ascd and REST uses the TLSv1. 2 protocol. Important: You must use the same SSL setting for the cluster management console and the RESTful web servers. If you enable SSL for one, you must also enable SSL for the other; if you disable SSL for one, SSL must be disabled for the other as well.


1 Answers

If your biggest concern is not spending money http://www.startssl.com/ provides free basic SSL certificates for a year so that may be worth looking into. I do not know off-hand which CAs are trusted by default in Android so it may turn out to be effectively the same as a self-signed certificate from the app's perspective.

Using a self-signed certificate would require finding a way to make sure the Android app expected that self-signed certificate and trusted not only your initial certificate but any replacement certificates in the future. I suspect this is more trouble than it is worth although I do not know much about Android development or the app in question so I may be overestimating the difficulty involved.

An EV certificate does provide a stronger guarantee to the client that the service is actually your service and owned by you but it does incur additional costs. Choosing an EV versus DV certificate becomes more of a risk/reward judgement call. Annecdotally, I typically only see EV certificates on financial sites and others where you would typically expect to find a high bar for security.

like image 167
Matt Glover Avatar answered Sep 29 '22 13:09

Matt Glover