Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

procedure to import CA cert into browsers #11

Open
chakl opened this issue Dec 14, 2014 · 6 comments
Open

procedure to import CA cert into browsers #11

chakl opened this issue Dec 14, 2014 · 6 comments
Labels

Comments

@chakl
Copy link
Contributor

chakl commented Dec 14, 2014

I have prepared the CA cert import into browser functionality.

  • additionally copy generated ca.crt to $PKI_BASE/$THIS_CA/ca.cacert
  • install a custom $JETTY_HOME/etc/webdefault.xml that assigns the correct mime type for files with .cacert externsion

Now if you provide a download link in the Web GUI to $PKI_BASE/$THIS_CA/ca.cacert, Jetty should return it as "application/x-x509-ca-cert", which should trigger a "CA import" dialog in the browser.

Need to test that with common browsers, but modern browsers should support that.

@JoernT
Copy link

JoernT commented Dec 15, 2014

we need to integrate the relevant entries in eXist's web.xml - shouldn't be a big deal and even be made possible by .xar mechanics (not sure how yet)

@chakl
Copy link
Contributor Author

chakl commented Dec 15, 2014

which entries? this should be enough <a href="ca.cacert">Klick here to import CA cert into browser</a>

@JoernT
Copy link

JoernT commented Dec 15, 2014

the mimetype mapping entries in web.xml

@chakl
Copy link
Contributor Author

chakl commented Dec 16, 2014

According to jetty docs, mime type are set in $JETTY_HOME/etc/webdefault.xml. I already patch that in reconfig-jetty.sh

Edit: maybe you confuse that with $EXIST_HOME/mime-types.xml, which defines how eXist stores file types into the DB (if I understand correctly) ?

@JoernT
Copy link

JoernT commented Dec 23, 2014

no, the mime-types.xml also determines how certain types are serailized (returned)

@chakl
Copy link
Contributor Author

chakl commented Jan 3, 2015

please add something like this to the GUI <a href="ca.cacert">Klick here to import CA cert into browser</a>

need this for some real-life testing for email crypto etc. currently show-stopper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants