Note that there are some explanatory texts on larger screens.

plurals
  1. POSWT-Browser: How to load a resource using HTTPS if the certificate is untrusted?
    primarykey
    data
    text
    <p>I am using the SWT Browser Widget to load the image of a webcam-server via HTTPS. Sadly the webcam-server certificate is untrusted. I tried to 2 variants to load the image:</p> <ol> <li><code>Browser.setHTML(String)</code><br> Load the image using HTML+JavaScript every second. This is the prefered way to avoid flickering. This works very fine for HTTP, if i have a HTTPS connection i will see noting at all except my alternative text.</li> <li><code>Browser.setUrl(String)</code><br> Load the image by setting the URL every second. This causes massiv flickering because of the reload, wich is unacceptable. I tried this variant with all available SWT-Browsers. If i use <code>SWT.WEBKIT</code> or <code>SWT.MOZILLA</code> (XulRunner) i have no chance at all to get the image. An dialog pop up and tell me the certificate is untrusted with no option to accept it. If i use <code>SWT.NONE</code> the IE is used (i am on WinXP) and the pop-up dialog ask if i want to trust the cert, after pressing OK i can see the image.</li> </ol> <p>Here at Stackoverflow i found: <a href="https://stackoverflow.com/questions/3776875/how-to-import-a-ssl-certificate-file-with-swt-browser">how-to-import-a-ssl-certificate-file-with-swt-browser</a>. But i unable to find the <a href="https://developer.mozilla.org/En/Cert_override.txt" rel="nofollow noreferrer">cert_override.txt</a> in my XULRunner, and i am unable to find a download link for the <a href="http://www.mozilla.org/projects/security/pki/psm/" rel="nofollow noreferrer">Personal Security Manager</a> (like many others) !</p> <p>How can i allow the untrusted certificate, use variant 1 and XULRunner aka MOZILLA ? Is it possible to do it programmatically ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload