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

The SSL cert for the MathJax CDN is invalid and URL is not protocol agnostic #4432

Closed
joelhullcio opened this issue Oct 23, 2013 · 5 comments
Labels
Milestone

Comments

@joelhullcio
Copy link

The SSL cert for this URL is invalid: https://cdn.mathjax.org/mathjax/latest/MathJax.js
I realize the notebook code uses http:// for this url but our site uses https:// so when a notebook requests the MathJax.js file it gives an insecure content error.

However, when I hit the URL with https:// it gives an invalid certificate error.

I realize there is an https CDN at Rackspace but notebook only uses it when a certfile is present. We host the notebook for many users so maintaining a certfile in the profile is not practical.

1> Can you install a valid cert for cdn.mathjax.org?
2> Can you make the CDN URL protocol agnostic so it will use the same protocol as the site that is hosting it. In other words, remove the http from the beginning of the URL so it starts with just the two slashes, like this:

   //cdn.mathjax.org/mathjax/latest/MathJax.js
@minrk
Copy link
Member

minrk commented Oct 23, 2013

  1. I think there's a reason cdn.mathjax.org can't get a valid certfile, otherwise they would already serve https from there.
  2. We can't use //cdn.mathjax.org/mathjax/latest/MathJax.js, because it doesn't have a valid certificate.

There are two fairly easy configuration solutions:

  1. You can set the mathjax url configurable in your own custom deployment, it's just:

    c.NotebookApp.mathjax_url = 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js'
  2. Or you can ship your own copy of mathjax, and serve it from the same server (many people serve mathjax locally on their own laptop, since it's much faster than using a CDN).

@ellisonbg
Copy link
Member

@minrk do you think we can close this?

@minrk
Copy link
Member

minrk commented Jan 26, 2014

This is actually fixed. We serve from the rackcdn url if HTTPS is being used, so the cert works properly.

@minrk minrk closed this as completed Jan 26, 2014
@pkra
Copy link

pkra commented Jul 14, 2014

Please update to https://cdn.mathjax.org -- the Rackspace URL will be retired soon. See http://www.mathjax.org/upcoming-changes-to-the-cdn/ for more information.

@minrk
Copy link
Member

minrk commented Jul 14, 2014

@pkra thanks, see #6134.

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

4 participants