mIRC Home    About    Download    Register    News    Help

Print Thread
#252076 19/03/15 10:24 AM
Joined: Nov 2014
Posts: 79
N
Newbie Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Nov 2014
Posts: 79
Hello again, I've recently been stumbling more and more to this problem. Whenever I look up a youtube video a notification pops up stating that a certificate needs to be authenticated.

Code:
on *:TEXT:!yt &:#: { 
  if ($sock(YTube)) .sockclose YTube
  if (*youtube.com* iswm $2) {
    set %y_l $right($2,11)
  }
  else {
    set %y_l $2
  }
  if ($ini(songrequest.ini,%y_l,0) == 1) {
    msg # This song is already in my playlist. 
    unset %y_l
  }
  else {
    set %y_d 1
    set %y_n $nick
    set %y_newb $chan
    sockopen -e YTube gdata.youtube.com 443
  }
}

on *:SOCKOPEN:YTube: {
  sockwrite -nt $sockname GET /feeds/api/videos/ $+ %y_l HTTP/1.1
  sockwrite -nt $sockname Host: gdata.youtube.com $+ $str($crlf,2)
}

on *:SOCKREAD:YTube: {
  if (!$sockerr) {
    sockread &sockreader
    if ($bfind(&sockreader,1,duration=')) { 
      var %y_len $bvar(&sockreader,$bfind(&sockreader,1,duration='),$calc($bfind(&sockreader,1,' yt) - $bfind(&sockreader,1,duration='))).text
      set %y_tlen $remove(%y_len,duration=')
      if (%y_tlen > 360) {
        msg %y_newb Videos longer than 6 minutes are not allowed. 
      }
      else {
        var %dinocoins $readini(Dinocoins.ini,$+(%y_newb,.,%y_n),dinocoins)
        if ($calc(%dinocoins - %y_d) > 0) {
          writeini -n Dinocoins.ini $+(%y_newb,.,%y_n) dinocoins $calc(%dinocoins - %y_d)
          writeini songrequest.ini %y_l %y_tlen %y_n 1
          unset %y_*
        }
        else {
          msg %y_newb You do not have enough dinocoins!
          unset %y_*
        }
      }
    }
  }
  else {
    msg %y_newb Video could not be found. 
    unset y_*
  }
}

Newbie #252077 19/03/15 11:28 AM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
This usually only will happen with an invalid certificate, does the error still occur? What does the window say? Can you view the certificate?

Joined: Nov 2014
Posts: 79
N
Newbie Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Nov 2014
Posts: 79
Yes it still pops up although it seems very random as to when it occurs. Unfortunately it happens so fast that I cannot take a screen capture of the certificate although I was able to copy some of it.

This is what I get
Quote:

Summary
Certificate has changed since last connection

Issuer
Organization: Google Inc
Host: Google Internet Authority G2
Country: US

Subject
Organization: Google Inc
Host: *.google.com
Dns: *.google.com, *.android.com, *.appengine.google.com, *.cloud.google.com, *.google-analytics.com, *.google.ca, *.google.cl, *.google.co.in, *.google.co.jp, *.google.co.uk, *.google.com.ar, *.google.com.au, *.google.com.br, *.google.com.co, *.google.com.mx, *.google.com.tr, *.google.com.vn, *.google.de, *.google.es, *.google.fr, *.google.hu, *.google.it, *.google.nl, *.google.pl, *.google.pt, *.googleadapis.com, *.googleapis.cn, *.googlecommerce.com, *.googlevideo.com, *.gstatic.cn, *.gstatic.com, *.gvt1.com, *.gvt2.com, *.metric.gstatic.com, *.urchin.com, *.url.google.com, *.youtube-nocookie.com, *.youtube.com, *.youtubeeducation.com, *.ytimg.com, android.com, g.co, goo.gl, google-analytics.com, google.com, googlecommerce.com, urchin.com, youtu.be, youtube.com, youtubeeducation.com
Country: US

Valid from 11/03/2015 to 09/06/2015

SHA1 fingerprint:
09:5A:23:5A:C2:E3:B5:4D:2A:6B:D6:69:1C:87:B0:EA:4B:11:A5:EF

Bubble-babble:
xedeh-pimyh-pabov-fatig-tipak-rahak-nulem-lysov-padac-cyniv-zyxyx


It seems to happen mainly when I type in a new link, and doesn't pop up when an old link is used.

Last edited by Newbie; 19/03/15 11:51 AM.
Newbie #252083 19/03/15 12:53 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Looks like the certificate changed, would be nice if there was an option to ignore certificate changes if it's still valid.

Joined: Nov 2014
Posts: 79
N
Newbie Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Nov 2014
Posts: 79
Well that's the thing, I've check marked the little box that says to automatically ignore the certificate but it keeps popping up.

Newbie #252087 19/03/15 07:58 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
That option applies to invalid certs, this is a notification about a cert change. I suggest filing it either as a bug or feature request, I don't think a client should be notifying you that a certificate has changed if it's valid so I'm leaning more on the 'bug' side as I disagree with the implementation wink

Newbie #252174 26/03/15 09:33 AM
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your post, I have moved this thread to the bug reports section.

The changed certificate warning was added a few versions ago to warn you if the certificate changed for an IRC server that was using an invalid certificate (most IRC servers use self-signed certificates unfortunately) that you previously approved. However, the warning is also being displayed for valid certificates, which it should not be. This has been fixed for the next version.


Link Copied to Clipboard