C
Carlo Folini
Hi,
I hava an assembly embedded in IE.
With this assembly I read with no problem a file (GET)
from the same site.
When I use SSL I get an error because the CN name in the
certificate is different from the server name.
Implementing the ICertificatePolicy I can get rid of the
error.
The problem with this approach is that the assembly runs
with low privilege (local intranet), and implementing
ICertificatePolicy requires full trust.
I think that there isn't a solution (at least
until "ICertificatePolicy" related class will be
implemented in managed code).
I read on documentation that is possible to change the
certificate policy behavior by setting a value in the
assembly configuration file.
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconhostingremoteobjectsininternetinformat
ionservicesiis.asp?frame=true&hidetoc=true
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.net>
<settings>
<servicePointManager
checkCertificateName="true"
/>
</settings>
</system.net>
</configuration>
Obviously this seems not to work (I tried also setting the
value to false).
Can someone clarify this problem?
Thanks
CArlo FOlini
I hava an assembly embedded in IE.
With this assembly I read with no problem a file (GET)
from the same site.
When I use SSL I get an error because the CN name in the
certificate is different from the server name.
Implementing the ICertificatePolicy I can get rid of the
error.
The problem with this approach is that the assembly runs
with low privilege (local intranet), and implementing
ICertificatePolicy requires full trust.
I think that there isn't a solution (at least
until "ICertificatePolicy" related class will be
implemented in managed code).
I read on documentation that is possible to change the
certificate policy behavior by setting a value in the
assembly configuration file.
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconhostingremoteobjectsininternetinformat
ionservicesiis.asp?frame=true&hidetoc=true
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.net>
<settings>
<servicePointManager
checkCertificateName="true"
/>
</settings>
</system.net>
</configuration>
Obviously this seems not to work (I tried also setting the
value to false).
Can someone clarify this problem?
Thanks
CArlo FOlini