What i did - i've configurated custom mouse gesture to close annoying window with middle mouse mouse (single click on nag window):
Edit you mouse setup, in Advanced -> Dialog section
[b]button3[/b] = [b]Focus next widget & Click button[/b]
Now use middle click on nag window to auto accept certificate.
You can also set the custom keyboard shortcut (Space, for an example)