Page 1 of 1

How to import certificate

Posted: 16 Jun 2016, 13:14
by flender
Hello,

I use a old version : 3.18.14-porteus-kiosk
I'm forced to use this version beacause my kiosk is running on a very old computer, and with the new porteus version the wireless driver is not supported.

The kiosk is used to get on a https web interface. So the browser need a certificate.
How can i insert this certificate in my kiosk (during the wizard or after) ?
Or during the wizard can I modify a firefox parameter to accepte all security exception ?

Thanks for your help :)

Re: How to import certificate

Posted: 16 Jun 2016, 16:48
by fanthom
Hello flender,

"I use a old version : 3.18.14-porteus-kiosk
I'm forced to use this version beacause my kiosk is running on a very old computer, and with the new porteus version the wireless driver is not supported."
If you send me debug report on support@porteus-kiosk.org then i'll have a look why its not working (at least with 3.7.0 release).

"How can i insert this certificate in my kiosk (during the wizard or after) ?
Or during the wizard can I modify a firefox parameter to accepte all security exception ?"
If its self signed cert then you must:
1) create clean Firefox profile under any Linux
2) navigate to your website and manually accept your certificate
3) remaster kiosk ISO as per this doc:
http://porteus-kiosk.org/kiosk-customization.html
4) copy cert8.db and cert_override.txt from your Firefox profile to your custom module
5) create new kiosk ISO

More info:
https://developer.mozilla.org/en-US/doc ... erride.txt

That should do it.

Re: How to import certificate

Posted: 28 Jun 2016, 08:00
by flender
Hi,

Can you tell me where is located the file " cert_override.txt" on the kiosk when they is running ? (by ssh connection)
I have found cert8.db in "/home/guest/.mozilla/firefox/c3pp43bg.default/cert8.db"


Thanks

Re: How to import certificate

Posted: 28 Jun 2016, 08:40
by fanthom
cert_override.txt should be also placed in the Firefox profile directory. Doing it over ssh wont work as profile is cleared during every browser restart. You must remaster installation ISO.

Thanks.

Re: How to import certificate

Posted: 28 Jun 2016, 12:29
by flender
Yes I know, It was just for copy cert8.db and cert_override.txt :D

I have unpack my module;
Can you give me the path where I need to insert the files ? /tmp/..../xzm/squashfs-root/usr/lib/firefox ?


Thanks

Re: How to import certificate

Posted: 28 Jun 2016, 14:23
by fanthom
Both files should go to Firefox profile directory which is:

Code: Select all

/home/guest/.mozilla/firefox/c3pp43bg.default
Please remember that root must have an ownership of the '/home' folder and guest must own the rest. Guest UID:GID is 1000:1000.

Re: How to import certificate

Posted: 29 Jun 2016, 05:50
by flender
Hi,

Hum ... I don't understand

I'have my 2 files (cert8.db and cert_override.txt )

Now I need to insert this files in my custom module.

But, when I unpack the firefox module (002-firefox.xzm) I can't find the profile directory why ?
(I search in /tmp/kiosk_iso/xzm/squashfs-root/usr/lib/firefox)
I have no profile directory such as c3pp43bg.default

Where can I found this directory for insert my files ?

Re: How to import certificate

Posted: 29 Jun 2016, 09:00
by fanthom
Create new module and add your custom files preserving correct path and permissions.

Re: How to import certificate

Posted: 29 Jun 2016, 11:36
by flender
Sorry, I don't understand what I need to do

I need to create a script who copy cert8.db and cert_override.txt to /home/guest/.mozilla/firefox/c3pp43bg.default ?
But, firstly how can insert my file in the custom module ? For the script can copy them


Thanks for you help ...

Re: How to import certificate

Posted: 29 Jun 2016, 13:15
by fanthom
Our documentation should help:
porteus-kiosk.org/kiosk-customization.html

If you are still in troubles then I recommend customized builds service:
porteus-kiosk.org/builds.html

Thank you.