Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
martani
Old
#1  
Member - OP
Thanks Meter 16
Posts: 74
Join Date: Nov 2009
Default Install a web certificate (*.cer) on an Android device

Hi,
To gain access to WIFI at university I have to login with my user/pass credentials.

The certificate of their website (the local home page that asks for the credentials) is not recognized as a trusted certificate, so we install it separately on our computers.

I want to know how to install such certificates on Android, I have HTC magic and I came through this question which seems the same problem but the solution is specific to exchange server and not the browser http://forum.xda-developers.com/showthread.php?t=551512

This is the details of installing the certificate from the university's page [LINK]
 
my_space
Old
#2  
Member
Thanks Meter 1
Posts: 42
Join Date: Oct 2009
Location: London
if you are rooted, download wifi helper (its free) from market and it should help you configure your wifi with custom cert files.
 
HalfBrian
Old
#3  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Jan 2010
Hey,

I stumbled onto this topic as I had the problem (but on the Droid, Android v2.0). I then figured out how to do it and made a tool to make it easier. I call it RealmB's Android Certificate Installer. It basically gives your Android's web browser the correct HTTP headers to make it launch the CA certificate installation wizard.

Hope this helps,
Brian
 
MrNago
Old
#4  
MrNago's Avatar
Senior Member
Thanks Meter 168
Posts: 172
Join Date: Apr 2011
Location: Madrid

 
DONATE TO ME
I used Android's built-in certificate manager.

1. Just drop your certificate file onto the sdcard/download folder.
Note: Keep in mind the manager looks for .p12 and/or .crt files. I had a .cer file, but it was PEM formatted so I simply changed the extension.

2. Go to settings-> Security & Privacy -> Install from SD Card
Note: I use the MIUI rom, so millage may vary a bit on other roms

Done! Enter your credentials password, or create a new one if you didn't have one already, and you're all set!
The Following 2 Users Say Thank You to MrNago For This Useful Post: [ Click to Expand ]
 
penky
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jul 2007
Thanks MrNago

renaming .cer to .crt really makes me being able to install it. Life can be so easy ... (MIUI 2.3)
 
gces
Old
#6  
Junior Member
Thanks Meter 1
Posts: 1
Join Date: Jan 2012
I was looking for a way to do this exact thing, and found a (potentially) easier way to install the certificate. If you have access to a web site, you can just put the .crt file on it, go to the site, click the file and voila... It installs on the device.

Worked like a charm since I do not have an SD card with me, but I needed to install the certificate.

Thanks for the comments above. I had a .cer file, and renaming it worked like a champ as well.

Bryan
The Following User Says Thank You to gces For This Useful Post: [ Click to Expand ]
 
rustamabd
Old
(Last edited by rustamabd; 3rd April 2012 at 09:25 AM.)
#7  
Senior Member
Thanks Meter 324
Posts: 154
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by gces View Post
I was looking for a way to do this exact thing, and found a (potentially) easier way to install the certificate. If you have access to a web site, you can just put the .crt file on it, go to the site, click the file and voila... It installs on the device. ...
Thanks, this works.

To install a browser certificate into a pre-ICS ROM, use Portecle to add it to /system/etc/security/cacerts.bks.
Notes:
- obviously, ROOT is required to do this
- the keystore p/w is changeit
- In ICS a certificate can be simply added via Settings
 
!crazy
Old
#8  
Senior Member
Thanks Meter 128
Posts: 545
Join Date: Dec 2011
The problem is only old stock browser sees installed certificate. This browser doesn't exist on Jelly Bean for Nexus 7. Google Chrome is default browser here.

Anyone knows a solution to this?

Thanks

Denis
 
rustamabd
Old
#9  
Senior Member
Thanks Meter 324
Posts: 154
Join Date: Apr 2009

 
DONATE TO ME
Quote:
Originally Posted by !crazy View Post
The problem is only old stock browser sees installed certificate. This browser doesn't exist on Jelly Bean for Nexus 7. Google Chrome is default browser here.

Anyone knows a solution to this?

Thanks

Denis
The solution could be to wait until the bug in Chrome is fixed.

 
Post Reply+
Tags
android
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Xposed Framework Module for the AT&T Galaxy S 4

Got yourself a brand new Galaxy S 4? Are you looking for some fun mods to make it truly your … more

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more