[SOLVED] How to import digital certificates on Android 2.2 - Android Software/Hacking General [Developers Only]

Hello,
I'm using Motorola Milestone 2 A953 (Android 2.2)
I used z4root to root it. Successfully.
I am trying to follow the tutorial "How to Import a Private Root Certificate to an Android Device to be Used with Citrix Receiver for Android" (http://support.citrix.com/article/CTX125431).
/system is already mounted as following:
c:\android-sdk-windows\platform-tools> adb shell
$ su
# mount
/dev/block/mmcblk1p21 /system ext3 rw,relatime,barrier=1,data=ordered 0 0
So I don't need to remount it as (right?):
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
c:\android-sdk-windows\platform-tools>adb push cacerts.bks /system/etc/security
But when I try the command under appears the error:
"failed to copy 'cacerts.bks' to '/system/etc/security/cacerts.bks': Permission d
enied"
Any ideas, please?
Cordially.

Hello,
I copied the file cacerts.bks using Windows Explorer to the sdcard.
Then using an app Terminal Emulator on the smartphone, I copied the file to /system/etc/security.
I can log on the Metaframe, but it shows another error now: "SSL/TLS error: The certificate validation failed."
So, I think it's time to a new thread.
Regards.

Hello,
After I did do this procedure, I'm having several issues with other apps such as Logmein Ignition, Amazon Kindle and Trillian. They are showing connection errors so they are not working.
Any ideas, please?

Nothing is perfect.
cviniciusm said:
Hello,
After I did do this procedure, I'm having several issues with other apps such as Logmein Ignition, Amazon Kindle and Trillian. They are showing connection errors so they are not working.
Any ideas, please?
Click to expand...
Click to collapse
Hello,
I reverted to the original cacerts.bks to be able to run these apps.
Regards.
P.S.: the new cacerts worked, I was able to use Brazil's CA certs, but unfortunately I lost the old ones.

Hello,
I have installed the Brazil's CA certs using "Certificate Manager" and "Certificate Installer" by Dolphin HD interface.
So I'm able to use Citrix Receiver with success.

Help on getting Citrix Receiver certs fixed
cviniciusm said:
Hello,
I have installed the Brazil's CA certs using "Certificate Manager" and "Certificate Installer" by Dolphin HD interface.
So I'm able to use Citrix Receiver with success.
Click to expand...
Click to collapse
I'm trying (and trying) to get Citrix Receiver going, and don't quite understand your post. I've loaded Dolphin, but am not clear what step 2 is.....
Would you mind explaining a bit more?

Hello,
Go to a web page with certificates that you want to import, then touch each certificate so the "Certificate Manager" and "Certificate Installer" will appears. The rest is intuitive.
Regards.

cviniciusm said:
Hello,
Go to a web page with certificates that you want to import, then touch each certificate so the "Certificate Manager" and "Certificate Installer" will appears. The rest is intuitive.
Regards.
Click to expand...
Click to collapse
Thank you for responding. I'll give it a shot.

Related

[Q] Editing file in /etc/wifi.., how?

Hi all,
Maybe some kind person can give me a hand with this:
I am trying to edit /etc/wifi/wpa_supplicant.conf (need this for some extra auth method in my university) on a HTC Desire (non HD) with 2.2 Froyo.
I rooted the phone using "revoked", and have Astro as file explorer and a shell terminal installed on the phone, and the Android SDK with abd.exe on Win764bit.
I tried editing the file directly with Astro (which does not seem to get root rights), no success.
'tried using adb, but I always end up having a no access. adb says the daemon is started successfully, but with "remount failed: operation not permitted".
Similar things happen with adb sysrw.
I googled some and a site mentioned a cat <some-file-name-i-forgot>
that should yield a 0, but yielded a 1.
Firewall on the Windows machine is off ofc. Bear with me, I'm new to Android.
anyone?
was rooting only partially done? any ideas?

[Q] Cifs Manager help

Does anybody have cifs manager working and able to mount their shared network drive? I tried pushing two different cifs.ko modules using adb.. but when I go try to mount my network drive I get "no such device". Neither one seems to work. I'm using the tiamat 1.4.1 kernel.
My NAS drive is shared, I'm able to access it on any other computer through the web, so I know that part should be fine.
Please help!
update:
I reflashed the 1.4.1 kernel and it seems to be recognizing the cifs.ko file now, because now I'm getting a different error when trying to mount:
When I only put admin as the username, I get "permission denied", but when i try to put the password in for my NAS, it says "no such device or address".

Ad-Hoc Wifi on Acer A500 Tablet (Honeycomb)

I was able to get wifi tethering up an running using the information in these posts:
Root the device using these instructions:
http://forum.xda-developers.com/showpost.php?p=13292713&postcount=82
Enable Ad-Hoc wifi access using these instructions:
http://forum.xda-developers.com/showthread.php?t=1033314
Worked very smoothly and it was my first foray in to Android and rooting....
BTW... I am tethering to a WinMo 6.5 phone using WMWifiRouter. It works nice too!!
Thanks for pointing out the thread that worked on your A500. I am going to try it this week. I'm also new at this and have been able to root and do a few other things thanks to everybody that posts the great walk-throughs here.
I got adhoc working on my A500 also (tethering to a jailbroken iphone with PDANet). I was running into issues trying to run the ADB REMOUNT command, with the error "Operation Not Permitted" being returned. There is probably a more skilled & elegant way do do this, but I modified the instructions I found here:
You need to turn on Airplane mode to disable wifi, or you will get an error when trying to copy the wpa_supplicant file with ADB PUSH later on in the instructions...
adb shell
# su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# chmod 777 /system/bin/wpa_supplicant (Or any subdirectory you want to push to inside system)
# exit
adb pull /system/bin/wpa_supplicant <local path on your computer> (this is to backup your original file in case you have to restore it)
adb push <local file> <device location>
and eventually you should restore the original directory permissions by going back into the shell:
# chmod 755 /system/bin/wpa_supplicant (Or any subdirectory you modified permissions to)
Now turn off Airplane Mode, and give it a test.
Click to expand...
Click to collapse
I also got adhoc wifi working on my A500 too by manually update wpa_supplicant via Root Explorer since the Acer new OTA version Acer_A500_1.126.03_COM_GEN1 still don't fix this issue.
I accidentally did it without turning the wifi off, now wifi doesn't work. Is there a way to recover it?
That's weird, it wouldn't even let me overwrite the file unless airplane mode was on (disabled wifi). If you made a backup copy of the file, just restore it. If you didn't, here's my original backup (which is not modified)....be sure to unzip it first before using it though.
Shrike9 said:
That's weird, it wouldn't even let me overwrite the file unless airplane mode was on (disabled wifi). If you made a backup copy of the file, just restore it. If you didn't, here's my backup....be sure to unzip it first before using it though.
Click to expand...
Click to collapse
Nothing, still get the same error, i think something happened in some other files because it was connected when i changed the file. Any idea of what could it be?
What error are you getting? I would also try rebooting your tablet. I am, unfortunately, no expert at this...I've only had exposure to honeycomb for 5-6 days now. So, I'll have to defer to all the experts in the forum.
I even tried a factory data reset but still get the same error, it just doesn't connect.
Any idea of what could be the problem?
Maybe i should wait for the os update?(can i do it without internet connection?)
A500 rooted/recognizing wifi, but pages don't load
I followed the steps: rooted my A500, uploaded the wpa_supplicant file, changed the permissions. I use WMWifiRouter on my HTC HD2 phone. Now, my A500 recognizes the ad hoc wifi and connects, but the browser fails to download any pages. My Acer netbook (Windows) works fine using the same connection. The A500 has Dolphin, Firefox, and pre-loaded browser - none of them will download pages. Also, the A500 browsers work fine on my home wifi and other wifi networks. Just not on the ad hoc wifi. Any ideas?
Damn, it took me hours to stumble upon this thread, but thank god I did! Now I finally have ad-hoc wifi working, though I couldn't follow the instructions: adb just kept complaining about device not present error. Had to do it another way.
Dear Sir
I have same problem with you.
My cell phone is HTC tough diamond and the soft is Windows Mobile 6.1.
My A500 can link with my cell phone but can't run browsers neither internet.
How do you conquer this problem? Can you share it?
Pretty sure your issue is with permissions.
I used a terminal app and entered the following for permissions w/ wifi disabled:
su root
chmod 755 /system/bin/wpa_supplicant
chown system.wifi /data/misc/wifi/wpa_supplicant.conf
Reboot and try again.
I so want to do this, as I could really use a WiFi AdHoc connection, but do not want to brick my WiFi. Are there a few other people who can confirm this as working?
I am using Acer_A500_4.010.13_COM_GEN2. Thanks
NDMerritt said:
I followed the steps: rooted my A500, uploaded the wpa_supplicant file, changed the permissions. I use WMWifiRouter on my HTC HD2 phone. Now, my A500 recognizes the ad hoc wifi and connects, but the browser fails to download any pages. My Acer netbook (Windows) works fine using the same connection. The A500 has Dolphin, Firefox, and pre-loaded browser - none of them will download pages. Also, the A500 browsers work fine on my home wifi and other wifi networks. Just not on the ad hoc wifi. Any ideas?
Click to expand...
Click to collapse
I have the same problem. Someone did it fix?
This worked for me using root explorer. Thanks for the post, I was getting a little mad that the ipad could see my phone but the a500 wouldn't see it.

[Q] Tiamat Manta Ray and OpenVPN

Having installed Tiamat 2.0.1 Manta Ray, I would like to be able to access OpenVPN. The list of Tiamat features indicates OpenVPN support, but I haven't found how this can be done.
Could someone help with this?
Thank you
Gordon
I never received any replies to my initial post regarding using OpenVPN, so I'd like to try again. If Manta Ray (no, I am not using Hammerhead yet) has built in support for OpenVPN, what do I need to do? Is it just a matter of creating and installing conf and certificate files. If so, where should they be placed?
Anyone had any experience of this?
Thank you
Gordon1M
http://forum.xda-developers.com/showthread.php?t=972550 tutorial work great for me, but I didn’t need to put the tun.ko in place, it was already there in the last taimat kernel.
Thanks for the reply. I saw the tutorial, but it seemed a bit old, given that Manta Ray has OpenVPN included in the ROM. However, maybe I should look at it again to see if I can adapt it. One downside of the tutorial seemed to be that one has to set things up each time OpenVPN is used.
Anyway, it's encouraging that OpenVPN is working well for you.
I have tried to follow the tutorial at http://forum.xda-developers.com/showthread.php?t=972550, but I can't get it to work. My Xoom is rooted. The steps I have taken are as follows:
Install Busybox ... Manta Ray comes with Busybox installed in /system/xbin/busybox, so I have skipped this step.
Install Openvpn Installer ... done.
Run Openvpn Installer ... In Manta Ray, the file openvpn is already installed in /system/xbin. There is also a file openvpn-up. I don't know what this file is for. Given that openvpn is already installed, I moved the original to another location, so that the Openvpn Installer could do its work, without any potential clash with an existing copy of openvpn. I then ran Openvpn Installer and, as instructed, specified /system/xbin as the installation location. The installer also asked me for the location of ifconfig and route, offering /system/xbin/bb, which I selected. I then let the installer continue, but there was no indication of any failure (the tutorial says it will fail but that it would leave "the bit we need on the sdcard"). I can't see that anything has been left on sdcard. Furthermore there is no /mnt/sdcard/openvpn directory (was this what should have been left?).
Regardless of the above, I continued with the tutorial and opened a terminal shell.
su worked fine.
I made the /system/xbin/bb directory without a problem.
I created the two symbolic links for busybox
I then tried to: cp /mnt/sdcard/openvpn /system/xbin/. Of course, this failed, as the source directory, /mnt/sdcard/openvpn did not exist.
So, where do I go from here? It seems that the Openvpn Installer should be doing something that it isn't. Should it be creating the /mnt/sdcard/openvpn directory and putting something in it? If so, this is not happening.
Any help much appreciated.
Thank you
Gordon
In the end, the solution was straightforward:
Install BusyBox and provide a link for ifconfig and route in a newly created directory, /mnt/system/bb.
For Manta Ray, openvpn was already there in /system/xbin (already set to chmod 555), so it wasn't necessary to install it.
tun.ko was also available in Manta Ray in /system/lib/modules, so I just copied it to a newly created directory /mnt/sdcard/openvpn.
Also, I placed (via a USB stick) the openvpn configuration files and certificates, client.ovpn, client2.key, client2.crt and ca.crt in the /mnt/sdcard/openvpn directory.
My existing Windows version of client.ovpn needed to be edited (on a PC) to specify the key and crt names that I had chosen (client2.key and client2.crt).
I saved client.ovpn in Linux file format (using LF for end-of-lines). Whether this was really necessary. I am not sure.
The last step was to use the OpenVPN Settings app from the Market to specify the paths for the location of openvpn and its configuration/certificate files.
From a remote location, I connected through the openvpn tunnel (having turned it on with VPN Settings) to my openvpn server and was able to see my home LAN, check IMAP4 e-mail on my home mail server (using LAN IP addresses) and use a VNC client.
So, this has worked all very satisfactorily in the end, despite my initial teething problems. Now that I have done it, it all seems very simple!!

[Q] mount VPN-drive with rw permissions on sdcard

dear all,
this is my first thread - I used the search (as usual) but this time neither XDA forums nor goolge could find a answer for my issue... so lets go:
I have a working VPN connection (openVPN) to my QNAP NAS. Furthermore I am able to mount my QNAP on the sdcard - so far everything is great ( I am able to listen to my music and have access to all my files from anywhere)
BUT: whatever I try I do not get write access at this folders...
setup:
- VPN connection via "OpenVPN Settings"-app
- mounting with "Script Manager"-app
code:
#!systm/bin/sh
#insmod /system/lib/modules/cifs.ko
mount -t cifs -o username=user, password=pass, -rw 'host' /sdcard/nas
I am not familiar with linux at all. I just googled for several ideas and connected them.
Any help is highly appreciated.
rgrds
p.s.: device G2 @ andro alpha v10
Nobody else wanna have a 1.000 GB sdcard?
;-(
Sent from my HTC Vision using XDA App

Categories

Resources