Self Signed Certificates on Android

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Self Signed Certificates on Android

Postby seanpkeown » Sun Sep 26, 2010 8:10 am

Hi Sindre,
I was wondering if you could implement a way for the android client to accept self signed certificates? I don't know if its possible but i thought that i would ask.

When i try to use one i get the following error.

Code: Select all
09-26 03:02:53.082  4482  7948 W RESTMusicService: javax.net.ssl.SSLException: Not trusted server certificate
09-26 03:02:53.082  4482  7948 W RESTMusicService:      at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.s
tartHandshake(OpenSSLSocketImpl.java:372)
09-26 03:02:53.082  4482  7948 W RESTMusicService:      at org.apache.http.conn.ssl.AbstractVerifier.verify(Abstract
Verifier.java:92)
09-26 03:02:53.082  4482  7948 W RESTMusicService:      at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(S
SLSocketFactory.java:321)



Thanks for this wonderful product.... I don't know how i ever survived with out it.

~ Sean K
seanpkeown
 
Posts: 100
Joined: Tue Jun 09, 2009 10:41 pm

Postby adi » Thu Oct 28, 2010 2:51 pm

I'd like to echo this request - ability to use self-signed certificates would be great.

I've actually tried looking into creating a patch myself but time, no android programming experience and rusty programming skills is meaning the progress is slow going.

found a few good articles through google - and some custom classes which could be allow this.
adi
 
Posts: 4
Joined: Tue Aug 03, 2010 12:38 pm

Re: Self Signed Certificates on Android

Postby nullchar » Tue Nov 16, 2010 5:46 am

If you have rooted your phone, you can follow these instructions on adding your self-signed cert to the system keystore.

http://wiki.cacert.org/ImportRootCert#Android_Phones

If you're not sure how to add your self-signed cert to a java keystore, you can follow the first two steps here:

http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html


That said, having the ability to add a keystore to the /subsonic/ folder as a non root user would be great; the ability to click "temporarily accept" or "permanently accept" upon server setup would be even better.
nullchar
 
Posts: 9
Joined: Tue Nov 16, 2010 5:13 am
Location: Idaho, US

Postby sindre_mehus » Wed Nov 17, 2010 8:22 pm

Self-signed certs are supported in version 1.8.2

Cheers,
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby seanpkeown » Wed Nov 17, 2010 10:03 pm

sindre_mehus wrote:Self-signed certs are supported in version 1.8.2

Cheers,
Sindre


:D Your the best Sindre...

Anyone who's wanting to encrypt your connection to subsonic i created a tutorial on how to self sign your own certificates in windows.

http://forum.subsonic.org/forum/viewtopic.php?t=4247
seanpkeown
 
Posts: 100
Joined: Tue Jun 09, 2009 10:41 pm

Postby ootuoyetahi » Wed Nov 17, 2010 10:03 pm

and its awesome.. I love that I now have the ability to SECURELY stream my music collection to my Phone. Thanks Sindre.
ootuoyetahi
 
Posts: 53
Joined: Wed Mar 24, 2010 7:10 pm

Sweet

Postby nullchar » Fri Nov 19, 2010 9:14 pm

Awesome! I was trying 1.8.1 from the SourceForge download instead of using the latest (now 1.8.3) from the Market.

Streaming works great over HTTPS using a self-signed cert. Thanks again Sindre for a great product (server and app)!
nullchar
 
Posts: 9
Joined: Tue Nov 16, 2010 5:13 am
Location: Idaho, US


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 10 guests