Tag: https

在build立TLS / LDAP或TLS / HTTP连接时,连线上会发生什么情况?

我正在改写我的问题,希望能得到更好的回应。 我在这里问了一个关于serverfault的类似问题,并认为一个正确和有效的TLS服务器是一个需要“STARTTLS”命令的服务器。 是否可以在不需要额外端口的情况下将STARTTLS发布到正确configuration的LDAP或HTTP TLS服务器? 我知道从SMTP的angular度来看这是真实的,但我不确定我可以将这些经验应用到其他协议的广泛程度。 我花时间阅读(但不完全掌握) TLS规范 TLS和SSL之间的区别 SSL规格 问:在通过LDAP或HTTP会话build立TLS之前,线路上会发生什么? 由于这是基于TCP的,我可以简单地telnet到该端口并发出一些命令来validation它的工作(到那一点)?

无法使用http / https将Git推送到远程存储库

我有一个服务器上的apache服务的目录中的Git存储库。 我configuration了WebDAV,它似乎运行正常。 Litmus返回100%成功。 我可以从远程主机克隆我的存储库,但是当试图推翻http或https时,出现以下错误: 错误:无法访问URL https://git.example.com/repo/ ,返回代码22致命:git-http-push失败 任何想法?

用户名和密码在httpsurl

考虑URL: https:// foo:password@example.com 上面例子中的用户名/密码部分是否符合这个问题定义的“URL参数”?

如何使用Jsoup通过HTTPS进行连接?

它通过HTTP正常工作,但是当我尝试使用HTTPS源时,会引发以下exception: 10-12 13:22:11.169: WARN/System.err(332): javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 10-12 13:22:11.179: WARN/System.err(332): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477) 10-12 13:22:11.179: WARN/System.err(332): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328) 10-12 13:22:11.179: WARN/System.err(332): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.setupSecureSocket(HttpConnection.java:185) 10-12 13:22:11.179: WARN/System.err(332): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:433) 10-12 13:22:11.189: WARN/System.err(332): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378) 10-12 13:22:11.189: WARN/System.err(332): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205) 10-12 13:22:11.189: WARN/System.err(332): at org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:152) 10-12 13:22:11.189: WARN/System.err(332): at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:377) 10-12 13:22:11.189: […]

如果你使用HTTPS将你的URL参数安全的嗅探?

假设我设置了一个可以通过HTTPS访问的简单的php web服务器。 该url具有简单的参数,例如https://www.example.com/test?abc=123 。 在这种情况下,参数是否真的可以避免人们嗅探数据包? 如果服务器没有使用任何SSL证书,这将是真实的吗?

我如何强制用户通过HTTPS而不是HTTP访问我的页面?

我只有一个页面,我想强制访问作为一个HTTPS页面(在Apache上的PHP)。 如何在不使整个目录需要HTTPS的情况下做到这一点? 或者,如果您从HTTP页面向HTTPS页面提交表单,是否通过HTTPS而不是HTTP发送? 这是我的例子: http://www.example.com/some-page.php 我只想通过以下方式访问它: https://www.example.com/some-page.php 当然,我可以把这个页面的所有链接都指向HTTPS版本,但是这并不能阻止一些愚蠢的人通过HTTP来访问它。 我想过的一件事是在PHP文件的头部添加一个redirect,以确保他们正在访问HTTPS版本: if($_SERVER["SCRIPT_URI"] == "http://www.example.com/some-page.php"){ header('Location: https://www.example.com/some-page.php'); } 但是这不可能是正确的方式,可以吗? 顺便说一句,请不要留意url。 我知道,如果它实际上是一个有购物车等的网页,那么你会以不同的方式去做。 把它看作是一个网站上的一个网站,它出售一个价格的一个项目,你input你的信用卡信息将被提交到外部网站上的支付网关,以便为你的卡充值一次。

ASP.NET MVC下的SSL页面

我如何去使用HTTPS在我的ASP.NET MVC的网站的一些页面? 史蒂夫桑德森有一个很好的教程,如何在干预的方式做预览4在: http://blog.codeville.net/2008/08/05/adding-httpsssl-support-to-aspnet-mvc-routing/ 预览版5有更好的/更新的方法吗?

Android排除自签名HTTPS信任锚找不到证书path

我是一个机器人新手。 这个问题已经被问了很多次,但是我已经经历了几乎所有的问题。 我试图在Node.Js服务器上使用自签名证书(使用express)和在Android上使用Volley。 使用: http : //blog.applegrew.com/2015/04/using-pinned-self-signed-ssl-certificate-with-android-volley/ 我无法使用http://ogrelab.ikratko.com/using-android-volley-with-self-signed-certificate/,因为在我的应用程序中有太多的代码需要更改。 这是错误。 javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:找不到证书path的信任锚点。 我的volleysingelton代码: private SSLSocketFactory newSslSocketFactory() { try { // Get an instance of the Bouncy Castle KeyStore format KeyStore trusted = KeyStore.getInstance("BKS"); // Get the raw resource, which contains the keystore with // your trusted certificates (root and any intermediate certs) InputStream in = mCtx.getResources().openRawResource(R.raw.evennewer); try […]

我怎么做像GitHub真棒无刷页面更改呢?

GitHub 似乎在做一些令人难以置信的事情:animation页面的变化没有破坏状态。 地址栏变化,但页面不刷新,我得到animation到下一个视图。 例如,点击这个URL: as3logback /然后点击这个URL: as3logback / lib 他们怎么在魔鬼身上呢! 这太酷了! 他们正在使用某种框架或某些服务器?

Powershell v3 Invoke-WebRequest HTTPS错误

使用Powershell v3的Invoke-WebRequest和Invoke-RestMethod我已经成功地使用POST方法将json文件发布到https网站。 我正在使用的命令是 $cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("cert.crt") Invoke-WebRequest -Uri https://IPADDRESS/resource -Credential $cred -certificate $cert -Body $json -ContentType application/json -Method POST 但是,当我尝试使用GET方法,如: Invoke-WebRequest -Uri https://IPADDRESS/resource -Credential $cred -certificate $cert -Method GET 以下错误被返回 Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send. At line:8 char:11 + $output = Invoke-RestMethod -Uri https://IPADDRESS/resource -Credential $cred + […]