https

wrong version keystore when doing https call

主宰稳场 提交于 2019-12-30 08:04:57
问题 Hello fellow android coders. I'm trying to do a https secure call from my android code. The call goes fine on the emulator but on the actual Samsung Galaxy device I get a SSL error. I used crazy bobs method for handling the cetificate. Here is crazy bobs link: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html. Problem is I get an error: "wrong version of keystore" inside the custom SSLSocketFactory object. Any suggestions on what to do to fix this? Thanks. 回答1: Did you

Setting a client certificate as a request property in a Java HTTP connection?

别等时光非礼了梦想. 提交于 2019-12-30 07:53:10
问题 I have a Java application that connects to another Java app through a socket with SSL, so my client JVM already has the -Djavax.net.ssl.keyStore and -Djavax.net.ssl.trustStore properties set. This application needs to make some HTTP requests to a web server that requires client authentication. I can open the connection by using a URLConnection in Java which returns an HTTPSURLConnectionImpl . The client certificate I want to present to the web server in the request is different than the one

https redirect for Network Solutions

一笑奈何 提交于 2019-12-30 07:44:29
问题 I am using Network Solutions as a hosting provider with a UNIX hosting package. I need to redirect certain pages to https (login, etc). After going through a lot of testing, I ended up with the following .htaccess entry: RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ [OR] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://[domain_redacted]/$1 [R=301,L] This resulted in an infinite redirect loop. After discussions with Network Solutions, they told me I needed to 301 redirect (apparently

How to require client certificate with com.sun.net.httpserver.HttpsServer

不问归期 提交于 2019-12-30 07:27:12
问题 I want to require client certificate authentication with a server based on Java 1.7's built-in HttpsServer. I cannot seem to find any way to make the server fail the authentication. It will merrily serve data to any old client at all, no matter whether its client cert is trusted, unknown, or entirely absent. My read of the docs suggests that setting HttpsParameters.setNeedClientAuth(true) ought to cause an authentication failure when the client isn't trusted. I've found notes by folks with

How to change http/https Protocol while using relative URL

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-30 06:11:53
问题 Protocol-relative URLs aren't what I'm looking for. I'm looking for a way of absolutely specifying a protocol (http vs https) while keeping the host name of the url relative. Given a relative URL such as "/SearchForStuff" I want to be able to specify a different protocol "https vs. http" etc. without having to specify a host/domain name. Our site has a header partial view which we display across the top of every page on our site. Some pages on the site are http and some are https. The header

Redirect from HTTP to HTTPS - IIS 7.5

对着背影说爱祢 提交于 2019-12-30 06:10:15
问题 I have implemented https on my application and now i'm trying to make IIS redirect all http request to https, so that the user doesn't even notice this change. I have changed and tried some of the IIS options but with no luck. How can i do this? I'm using IIS 7.5 and ASP.NET 2.0 Regards, 回答1: You can install the RewriteModule and follow the instructions on this page. 回答2: The approach described in this blog article works well. Summary: 1) Turn on "Require SSL" setting for the site. 2) In the

Redirect from HTTP to HTTPS - IIS 7.5

試著忘記壹切 提交于 2019-12-30 06:07:40
问题 I have implemented https on my application and now i'm trying to make IIS redirect all http request to https, so that the user doesn't even notice this change. I have changed and tried some of the IIS options but with no luck. How can i do this? I'm using IIS 7.5 and ASP.NET 2.0 Regards, 回答1: You can install the RewriteModule and follow the instructions on this page. 回答2: The approach described in this blog article works well. Summary: 1) Turn on "Require SSL" setting for the site. 2) In the

How to fix “Blocked loading mixed active content” for css and js over https

醉酒当歌 提交于 2019-12-30 06:00:18
问题 When attempting to view my site over https, I keep getting a "Blocked loading mixed active content" error in my Firefox console. I am getting this error only for my css and js file. The reason I am so confused is because the reference to the files in the page code itself is https: <link rel="stylesheet" href="https://www.example.com/style.css"> But in the console, it shows it as http: Blocked loading mixed active content "http://www.example.com/style.css"[Learn More] I can do a view source on

Using PointDNS on Heroku to manage SSL and non-www to www redirects

爷,独闯天下 提交于 2019-12-30 05:07:26
问题 I've been using Heroku to host and manage a website of mine that requires an SSL certificate. For the last year and a half I've been using ZerigoDNS to manage my domain and SSL redirecting (although, redirecting from non-https, non-www to https and www does not work). I just got a notice from Heroku that they will be shutting down ZerigoDNS soon and they recommend switching to PointDNS. I couldn't find any information in the PointDNS documentation about managing SSL redirects. Here's what I'm

Configure WEBrick to use automatically generated self-signed SSL/HTTPS certificate

孤街醉人 提交于 2019-12-30 03:59:07
问题 I want to develop my Ruby on Rails application locally with SSL/HTTPS, but I'm having trouble trying to setup a server to use SSL. The following are the things I've already tried so far: rails server [options] The rails server command doesn't come with an ssl option ( rails server --help ): Usage: rails server [mongrel, thin, etc] [options] -p, --port=port Runs Rails on the specified port. Default: 3000 -b, --binding=ip Binds Rails to the specified ip. Default: 0.0.0.0 -c, --config=file Use