Supplying user certificates for ssl sites

27 views
Skip to first unread message

Phil

unread,
Aug 25, 2009, 12:02:14 AM8/25/09
to mozilla-labs-prism
Does anyone know if it is possible to supply your own ssl certificate
to a prism app so that it works on ssl sites designed for this ? Or
maybe it should go in the wishlist ?

Our company is using their own openssl certificates and furthermore,
it's authenticating users with certificates as well so that you can
only access each web app if you have this certificate present in your
browser. Now, I can add an exception for the CA ssl certificate that
is not present in prism but I cannot submit my user certificate. Is
there any way to do this with Prism ?

katsumi

unread,
Sep 3, 2009, 11:09:08 PM9/3/09
to mozilla-labs-prism
Hello Phil,

I am also having the exact same issue on OSX -- is prism still under
active development? I fell in love with it last night but I am
starting to wonder if it is premature. The options are extremely
scarce for such a powerful extension, and you can't seem to make any
changes to an App once it's created. But I can deal with all that --
but not accepting self-signed certs is a pretty big issue IMO.

katsu

Jason Miller

unread,
Sep 4, 2009, 2:03:50 PM9/4/09
to mozilla-l...@googlegroups.com
Katsu,

I'm not knowledgable in the area of SSL certs, but you can actually change an app once you've created it.
You're on OSX, so all you have to do is find the .app file in your Applications folder and right-click (control-click) it, selecting "Show Package Contents". In the Finder window that opens, navigate to Contents/Resources/webapp/.

In that folder, you can create (or edit if they exist) the following files:

webapp.js  -  the JavaScript library for your app, see the wiki for particulars
webapp.css  -  custom CSS (applied to every page viewed, or you can use -moz-domain to limit its scope)
webapp.ini  -  your webapp configuration file
override.ini  -  I'm not sure if this is useful

Also, you can change the icon for your app by modifying these files:
Contents/Resources/webapp.icns
Contents/Resources/webapp/icons/default/webapp.icns


Regarding the SSL certificates - are you able to edit the prefs.js file for your application? It would be located in:
/Users/[your-username]/Library/Application Support/[webapp-name]/Profiles/[profile-name]/prefs.js

Hope that helps.
- Jason

Matthew Gertner

unread,
Sep 8, 2009, 4:17:05 AM9/8/09
to mozilla-l...@googlegroups.com
There's a bug filed about this:
https://bugzilla.mozilla.org/show_bug.cgi?id=494174. I'm trying to
find some way to get it fixed since I'm personally pretty swamped
right now. Certainly if someone wants to propose a patch I'd be happy
to review it.

Matt

pedma

unread,
Sep 8, 2009, 7:40:25 AM9/8/09
to mozilla-labs-prism
Hi,

I'm new to prism, and sorry for my bad english ... Prism is a nice
software ... thanks to developer :)
I have also the same problem & hope it can be solved in the near
time :). I found this trick for temporary :

1) Install Firefox, access the url which has the self signed ssl with
firefox (https://www.yoursite.com)
2) Add exception for that URL permanently
3) Copy 2 files (cert8 database file & cert_override txt file) from
firefox mmmm.default to prism zzzzz.default directory.
Example

From :
c:\ Documents & Settings -> username -> application data -> mozilla
-> firefox -> profiles -> xxxxxx.default

To :
c:\ Documents & Settings -> username -> application data -> prism -
> profiles -> yyyyy.default

4) Open prism & try again .... hopely it works ... (it worked at my
pc ... :)

- pedma -
Reply all
Reply to author
Forward
0 new messages