我一直在google搜索我可能找到的任何地方(包括在这里的Stackoverflow),以找出我试图将WCF服务部署到Windows 7 x64上的IIS 7.5上的错误,该服务仅通过基本HTTP身份验证的SSL运行.我在IIS中有一个站点,它具有绑定到端口50443的HTTPS以及自签名证书.(我不能使用标准端口443,因为我们计划在已经运行Tomcat的服务器上将其部署到IIS,该服务器正在监听80和443.)
这是web.config:
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpsGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="SSLBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="HelloWorldWcf.HelloWorldWcfService">
<endpoint name="HelloWorldWcf.HelloWorldWcfService"
address="https://mylaptop:50443/HelloWorld/Service1.svc"
binding="basicHttpBinding"
bindingConfiguration="SSLBinding"
contract="HelloWorldWcf.IHelloWorldWcfService"/>
<endpoint address="https://mylaptop:50443/HelloWorld/Service1.svc/mex"
binding="mexHttpsBinding"
contract="IMetadataExchange"/>
</service>
</services>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)
如果我浏览到服务端点地址并手动输入基本身份验证凭据,则会在浏览器中显示以下异常错误消息:
提供的URI方案"https"无效; 预计'http'.
参数名称:context.ListenUriBaseAddress
这是我尝试针对类似服务运行WCF客户端时出现的相同错误,除了它以"参数名称:via"结尾(因为调用堆栈中显示的方法的参数名称为"System.ServiceModel"). Channels.TransportChannelFactory`1.ValidateScheme(URI via)",实际上是"via").
我已经调整了服务器和客户端配置文件很多次我失去了轨道,但上面的web.config文件是我迄今为止最好的猜测 - 它甚至不能在浏览器中运行,更不用说WCF客户端了.
通过HTTPS进行基本HTTP身份验证,在非标准SSL端口上访问IIS 7.5中托管的WCF服务需要做什么?救命!(& 谢谢!)
什么是.dat证书?JKS证书和.dat证书之间有什么区别吗?如何使用.dat证书信任服务器端?与其他证书是否相同?
由于我已将Firefox更新为14.0.1,因此它会自动将https放入我们在线商店的域中.
我需要一个.htaccess文件的代码,以便当Firefox 14.0.1将其更改为https://www.example.com时,只有初始页面即www.example.com被重定向/强制进入www.example.com
所以只有https://www.example.com才能成为www.example.com
有人知道这个代码吗?
谢谢.
我正在尝试通过SSL加密我的整个网站.但是,我没有找到一个明确的方法来使用Django 1.4.有谁知道解决方案?
当被要求考虑对我公司的网站进行身份验证时,我最终使用了htaccess和htpasswd.现在我被要求寻找更安全的解决方案.我被建议注意的一个场景是嗅闻.我环顾四周,发现HTTPS似乎是我正在寻找的解决方案.
如果我们的员工只会访问身份验证,并允许他们访问数据库.此数据库上的活动应该非常轻松.我的印象不过是说每个会话有5个查询,而且检索到的数据也是轻量级的.
从我所看到的,似乎HTTPS是我应该在这里押注的.我在身份验证和加密方面的知识几乎没有,所以我想知道是否还有其他选择可以为我们的网站进行安全身份验证.
我遇到身份验证问题WebView我有一个需要身份验证的https地址,但它不是基本身份验证.
当我在手机上访问chrome并转到此站点时,我会看到一个对话框,要求我输入用户名和密码我想做类似的事情,但我所做的所有身份验证尝试都失败了,因为他们找到了所有似乎都是基本的身份验证,我不认为这是它的本质.
任何帮助表示赞赏,抱歉,如果这是重复但我看了,发现没有类似的.
我有NameCheap.com提供的COMODO扩展验证.它给了我这些文件:
[domain]_com.crt
AddTrustExternalCARoot.crt
COMODOAddTrustServerCA.crt
COMODOExtendedValidationSecureServerCA.crt
Run Code Online (Sandbox Code Playgroud)
我做的一切都是我的问候应该拆包site.key并没有什么,但我没有这样做是结合上面列出的4项一个文件.我只是做了
$ heroku certs:add [domain]_com.crt site.key --app myapp
Run Code Online (Sandbox Code Playgroud)
做了一些研究并将它们全部放入一个文件中
$ cat [domain]_com.crt COMODOExtendedValidationSecureServerCA.crt /
COMODOAddTrustServerCA.crt AddTrustExternalCARoot.crt > [domain]_com-bundle.pem
Run Code Online (Sandbox Code Playgroud)
我想做
$ heroku certs:update [new_file].pem site.key --app myapp
Run Code Online (Sandbox Code Playgroud)
但我得到这些错误:
Resolving trust chain... done
Updating SSL Endpoint [app].herokussl.com for [myapp]... failed
! Pem can't be blank
! Pem is invalid
! Expires at can't be blank
Run Code Online (Sandbox Code Playgroud)
我的PEM文件错了吗?我cat的订单错了吗?
我有一个带登录表单的Codeigniter应用程序.我在Apache和Nginx上运行它.在Apache上,一切正常,表单操作正常.但是在Nginx上,表单操作使用https而不是http(目前我不想要).
我用这个生成表单:
<?php echo form_open(site_url('/user/do_login')); ?>
Run Code Online (Sandbox Code Playgroud)
它产生了这个:
<form action="https://example.com/index.php/user/do_login" method="post" accept-charset="utf-8">
Run Code Online (Sandbox Code Playgroud)
如何强制它生成http而不是httpsNginx?
我完全按照本教程:
http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx
但是当我在本地运行并尝试从非https页面(如home/index)导航到我用[RequireHttps]装饰的页面时,我得到了通用的"SSL连接错误"消息.
我讨厌发布这样一个通用的问题,但你能想到我错过的任何东西吗?它是一个大型的asp.net mvc4应用程序,我在项目中启用了ssl,它显示了ssl url.手动导航到ssl url也不起作用.
HALP!
注意:在Visual Studio 2012中使用IIS Express
根据评论,我得到的错误是无法建立SSL连接.
我想使用fiddler检查Azure Powershell发送的https请求,但是当我收到https请求时,它将返回由azure portal禁止的403.有人能解决这个问题吗?非常感谢!!!!
https ×10
ssl ×5
.htaccess ×2
encryption ×2
wcf ×2
android ×1
apache ×1
asp.net ×1
asp.net-mvc ×1
azure ×1
codeigniter ×1
django ×1
fiddler ×1
firefox ×1
heroku ×1
http ×1
iis-7.5 ×1
nginx ×1
php ×1
powershell ×1