https

Is self-signed and/or expired HTTPS certificates worse than just using HTTP?

老子叫甜甜 提交于 2020-01-01 14:25:10
问题 Despite the fact that you get a big red threatening warning telling you that the certificate has not been verified by one of those certificate authorities or has expired, what is bad with it in comparison to just using HTTP? Is it worse or not? According to Google Chrome (http://www.sslshopper.com/assets/images/chrome-beta-ssl-2.png) « an attacker may be trying to intercept yours communication ». What makes this browser and almost all others raising this warning in the case of a self-signed

cURL returns binary data instead of html

允我心安 提交于 2020-01-01 11:50:33
问题 function curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/25.0.1"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIE, 'long cookie here'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $output = curl_exec($ch); curl_close($ch); return $output; } The original url I'm feeding it is http://example.com/i-123.html but if I open in

Use HTTPS only for certain pages in servlet based webapp

我只是一个虾纸丫 提交于 2020-01-01 09:23:15
问题 I have a servlet based webapp running on Tomcat 6 server. The URL scheme is HTTPS. The entire site is currently being served on HTTPS. But what I would really like to do is setup HTTPS only for certain operations like purchase and login. Is there any configuration in Tomcat that can help me do this easily? Are there any code changes required to persist session across HTTPS and HTTP? 回答1: Really, ideally, this is configured in your web app's web.xml file. You simply specify certain URLs that

Use HTTPS only for certain pages in servlet based webapp

試著忘記壹切 提交于 2020-01-01 09:22:39
问题 I have a servlet based webapp running on Tomcat 6 server. The URL scheme is HTTPS. The entire site is currently being served on HTTPS. But what I would really like to do is setup HTTPS only for certain operations like purchase and login. Is there any configuration in Tomcat that can help me do this easily? Are there any code changes required to persist session across HTTPS and HTTP? 回答1: Really, ideally, this is configured in your web app's web.xml file. You simply specify certain URLs that

Verify remote SSL certificate during HTTPS request

房东的猫 提交于 2020-01-01 09:14:52
问题 When making HTTPS request to remote web server, I use WebRequest, which establishes secure connection with remote web server. During development, I use self-signed cert on server, and WebRequest fails to establish secure connection, since cert is not valid, which is expected behavior. I have found this code that "remotes" cert check, activated by calling SetCertificatePolicy() method in following code. public static void SetCertificatePolicy() { ServicePointManager

Configure HostnameVerifier with reactor netty for spring-webflux WebClient

瘦欲@ 提交于 2020-01-01 08:35:10
问题 I'm trying to configure spring-webflux WebClient (with reactor netty under the hood) with ssl and client hostname verification. I'm provided with javax.net.ssl.SSLContext, HostnameVerifier and a list of trusted hostnames (as string list). So far I've configured WebClient with my SSLContext, but I can't find a way to configure hostname verification. To state my problem: I have a set of trusted services hostnames (String list) and a HostnameVerifier. I want to configure my WebClient with it. Is

Safari won't load some resources over http/2

陌路散爱 提交于 2020-01-01 08:33:53
问题 Http/2 is enabled on server and yesterday I noticed that on Iphone (IOS 10.2) does not load some resources with error: failed to load resource:connecting to server is not possible . When I connect Iphone to Mac there are no errors in console but simply result of some requests result imidiatelly in that error. Interesting thing could be the fact that resources which are not loaded are subdomain of real domain( CNAME to be correct). Site is on https. Server is Windows server 2016. EDIT: We

Android 2.2 and 2.3 PDF download via HTTPS seems broken

≡放荡痞女 提交于 2020-01-01 08:19:13
问题 I've been going nuts about PDF downloads to mobile devices. Here's the next madness, observable on Android 2.2 and 2.3. I couldn't reproduce this problem on iPhones or other devices, neither on Firefox or other desktop browsers. I'm downloading a PDF via HTTP and it works just fine. Then I'm downloading the same PDF via HTTPS and the download doesn't finish (and the filename is lost): I'm using these HTTP headers (and others, which are irrelevant here): Content-Disposition: attachment;

Intermittent ERR_SSL_PROTOCOL_ERROR error for cross domain request

£可爱£侵袭症+ 提交于 2020-01-01 07:52:07
问题 The users of my website are seeing intermittent ERR_SSL_PROTOCOL_ERROR when making cross domain requests to api.flickr.com By intermittent I mean that I've seen this happen 4 times out of ~1200 requests to the api yesterday. Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=..... My site is and AngularJS application running on Google App Engine and is exclusivley avalable on HTTPS. sslchecker shows that my site's

Java ssl performance issue in connection with downloads

ぐ巨炮叔叔 提交于 2020-01-01 07:13:11
问题 i'm currently working on a small swift-client and got some hard performance issues by downloading files. After thousands of checks i localized the problem by downloading files through ssl. Normal downloads(http) works fine without any problems(or performance issues). But SSL downloads blow up my CPU ... a single core goes up to 100 % load (for a single thread) i wrote a small testclass without my entire program and can confirm my previous observations. package testDownload; import java.io