SSL and external js file

I have an SSL enabled page that loads an external javascript file,
but the .js is giving an SSL warning dialog for an invalid certificate.  
What can I do about that?
LVL 2
kaller2Asked:
Who is Participating?
 
af500Connect With a Mentor Commented:
Does your dev server use a SSL cert? What kind of SSL cert do you have? Is it using a wildcard? I would love to find a solution to this as I have the *same* problem.

I have a self-signed cert on my dev box, and a real Thawte cert on my prod box.  I get a popup on both servers when the external JS is included, if I remove it everything works fine.

As far as I know, once you have code in your site that did not originate from the domain listed on your cert ... that will cause the popup because your code is not 'really yours' anymore as far as the browser / cert is concerned.
0
 
af500Commented:
Bring the external page internal :) I had the EXACT same problem. I do not think there is a way around this.
0
 
kaller2Author Commented:
It doesnt happen with our development server though.
0
 
kaller2Author Commented:
I may be dealing with some kind of local conflict with the hostname or proxy or caching problem, my hosting company report my site and certificate is working fine, and yes it is a signed certyificate with external javascript loading OK.

What fooled me was that when I accessed the production server from my development LAN, the js file triggered a warning.  But when I looked properly at the site certificate details it was MY LOCAL server certificate! that was doing it.  

Well it still is, so now I am looking into that, but at least I am a bit happier.
0
All Courses

From novice to tech pro — start learning today.