I've a VM that has a self-sign certificate. If I test my https page in Firefox or Chrome, I just need to accept or add exception for the cert and I will be fine. I can make JSON call or JSONP call.
However, when I do it in IE, I can't. I add the certificate as ROOT cert, and then
1) every time I restart the browser, it will ask for the certificate again.
2) every time I make JSONP call with https, IE doesn't like it and show "IE has blocked this website from displaying content with security certificate error...". and even I click "display blocked content", it doesn't help and show up anything. :(
a开发者_StackOverflow中文版ny idea how to deal with IE (without getting a real cert) Thanks.
When Internet Explorer presents the screen with the warning "There is a problem with this website's security certificate", follow these steps to create a security exception for this site:
- Click on "Continue to this website (not recommended)."
- Right-click on the background of the page
- Select "Properties"
- Click the "Certificates" button
- Click the "Install Certificate..." button
- Click the "Next >" button
- Select "Place all certificates in the following store"
- Click the "Browse..." button
- Select "Trusted Root Certification Authorities"
- Click the "OK" button
- Click the "Next >" button
- Click the "Finish" button
- A security warning pops up. If you are sure the certificate is safe, click the "Yes" button
- A notification pops up "The import was successful." Click "OK"
From now on (until the self-signed certificate expires), you will not get the certificate warning every time you go to that page.
If this doesn't work, you may have already installed the certificate in the wrong location. To remove an incorrectly installed certificate, open Internet Options, click on the "Content" tab, click the "Certificates" button, find your certificate in one of the tabbed lists, and click the "Remove" button. Then try following the preceding directions again.
If it keeps failing after that, there is a high probability that your certificate is invalid. Right-click the web page, select "Properties", click on "Certificates", and double-check that the "Issued to:" name matches the domain in the URL bar, and that the "Valid from ... to ... " dates include the date that the client machine is set to.
If the Install Certificate is greyed out, you have to run iexplore as administrator.
Did you put it in the user Trusted Roots certificate store or the machine? Are you running as the same user? Putting a self signed certificate in the Trusted Roots store should work fine.
Alternatively, look at the wire traffic and see if the proper certificate is being sent to the client, it might be a server config problem.
精彩评论