Solved

SSL and external js file

Posted on 2003-11-18
4
405 Views
Last Modified: 2010-04-20
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?
0
Comment
Question by:kaller2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:af500
ID: 9772787
Bring the external page internal :) I had the EXACT same problem. I do not think there is a way around this.
0
 
LVL 2

Author Comment

by:kaller2
ID: 9774651
It doesnt happen with our development server though.
0
 
LVL 4

Accepted Solution

by:
af500 earned 250 total points
ID: 9774715
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
 
LVL 2

Author Comment

by:kaller2
ID: 9775685
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

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question