PRB: Invalid Certificates Cause RDS Problems (193096)
The information in this article applies to:
- Remote Data Service for ADO 1.5
- Remote Data Service for ADO 2.0
- Remote Data Service for ADO 2.1 SP2
- Remote Data Service for ADO 2.5
- Remote Data Service for ADO 2.6
- Remote Data Service for ADO 2.7
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q193096 SYMPTOMSNOTE: This article assumes that you are familiar with Remote Data Services
(RDS) Visual Basic and Secured Sockets Layer (SSL).
When using Visual Basic and RDS to retrieve data from an SSL Web site, the
following errors might appear:
Internet Client Error.
-or-
Internet Server Error.
The same code may run on a non-SSL Web site or through an SSL Web site using
Internet Explorer.
CAUSE
An Invalid SSL Certificate, or the certificate causes this problem.
Authority is unknown or not trusted.
Internet Explorer 4.0/5.0 passes this problem by displaying the following message
to the user:
The Certificate Issuer for this site is untrusted or unknown. Do you
wish to proceed?
If the user selects Yes, RDS functions normally. If the user selects No, the page does not load.
Visual Basic does not expose this user interface. Because of this, RDS
assumes the connection is not secure and does not allow information to be
exchanged. This behavior can also be seen in other languages and implementations such as VBScript and JSscript through ADO or Access 97 and so on.
This default behavior cannot be changed.
RESOLUTION
Make sure that the server certificate is valid and the certificate authority is
on the list of accepted certificate authorities.
You can use the following methods to verify your certificate authorities:
If you are running Internet Explorer 4.0:
To check if the certificate authority is trusted, on the Control Panel, select
Internet Options. Click the Content tab, and then select Authorities. If your
particular Certificate Authority is not listed, you need to obtain and install a
valid Site Certificate. Your Certificate Authority should issue this to you.
If you are running Internet Explorer 5.0:
To check if the certificate authority is trusted, on the Control Panel, select
Internet Options. Click the Content tab, and then select Certificates. If your
particular Certificate Authority is not listed on any of the tabs, you need to obtain and install a
valid Site Certificate. Your Certificate Authority should issue this to you.
If you do not have this, nor have any means of getting this, you cannot use RDS through Visual Basic. You can still use RDS through Internet Explorer; however, every time you visit the SSL Web site, you are prompted that the certificate authority is not valid, but you are not allowed to continue.
Setting your security to Low (in Internet Options) does not
prevent the error from occurring.
If you can visit the Web page without being prompted with any dialog boxes,
Visual Basic should be able to make a secure RDS connection.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 6/27/2006 |
---|
Keywords: | kbDatabase kbprb kbSecurity KB193096 |
---|
|