Arun Pati
Arun Pati

Reputation: 125

IE11 security certificate issue when using iFrame

I am getting the below error when I am trying to open one new window using iFrame and IE11, the new window is having a pdf content. IE7-IE10 looks good. I am using https here. Error message:

Content was blocked because it was not signed by a valid security certificate. For more information, see “About Certificate Errors” in Internet Explorer Help.

My Code goes here:

if (navigator.userAgent.indexOf('MSIE') !== -1){
    var html = "<html><head><title></title>";
    html += "</head><body style='margin: 0;'>";
    html += "<iframe height='100%' width='100%' src='" + finalUrl +"'></iframe>";
    html += "</body></html>";       
    // open new pop up window
    YUIwinObj= window.open("", 'document', 'width=825,height=600,directories=no,status=yes,location=no,scrollbars=yes,resizable=yes');
    YUIwinObj.document.write(html);
}

Thank you.

Upvotes: 1

Views: 9187

Answers (2)

Sundara Prabu
Sundara Prabu

Reputation: 2729

i was breaking my head for weeks , finally it is this go to IE 11 advanced settings tab and uncheck

"Warn about certificate address mismatch"

Upvotes: 3

Arun Pati
Arun Pati

Reputation: 125

It was the issue with self-signed certificate. Due to enhanced security features of IE11, it was not allowing a https.

It worked fine for a session when I installed a certificate for the IE11.

http://esupport.trendmicro.com/solution/en-US/1103987.aspx

It works well with an certificate issued by CA or other organizations.

Thanks

Arun

Upvotes: 0

Related Questions