tls1.2

How to enforce TLS1.2 to Rest client using Rest Template

浪尽此生 提交于 2019-11-27 13:15:51
问题 I am consuming json webservice using Spring3.0 restTemplate by calling post method. MultiValueMap<String, String> headers = new LinkedMultiValueMap<String, String>(); headers.add("Content-Type", MediaType.APPLICATION_JSON_VALUE); HttpEntity<Object> entity = new HttpEntity<Object>(requestAsString, headers); postForObject = restTemplate.postForObject(url, entity, responseClass ); Our application is deployed in WAS server and trying to connect producer by creating socket connection with TLS1.0.

TLS 1.2 not negotiated in .NET 4.7 without explicit ServicePointManager.SecurityProtocol call

前提是你 提交于 2019-11-27 10:31:18
问题 I need to upgrade a .NET application to support a call to an API on a website that only supports TLS 1.2. From what I read, if the application is targeting 4.6 or higher then it will use TLS 1.2 by default. To test I created a Windows Forms app that targets 4.7. Unfortunately it errors when I don't explicitly set ServicePointManager.SecurityProtocol. Here is the code: HttpClient _client = new HttpClient(); var msg = new StringBuilder(); // If I uncomment the next line it works, but fails even

Set option 9 in SQL Server stored procedure using WinHttp.WinHttpRequest.5.1 for TLS 1.2

雨燕双飞 提交于 2019-11-27 08:33:58
问题 I am trying to connect to a web service that only supports TLS 1.2. I'm having trouble with the syntax for setting option9 ( WinHttpRequestOption_SecureProtocols ) to use TLS 1.2 I've tried EXEC sp_OASetProperty @objectID, 'Option', '2720', 9 but no dice. 回答1: Not because it's a good idea, but so that no one else has to figure out how to use the horrid sp_OAxxx stored procedures... Here's an update to my ancient HTTP stored procedure to use both WinHttp and set that option. The Option

Android pre-lollipop devices giving error “SSL handshake aborted: ssl=0x618d9c18: I/O error during system call, Connection reset by peer”

雨燕双飞 提交于 2019-11-27 04:32:17
Iam having this strange issue in which the retrofit keeps throwing me "SSL handshake aborted: ssl=0x618d9c18: I/O error during system call, Connection reset by peer" in kitkat, whereas the same code working fine in lollipop devices. Iam using an OkHttpClient client like the following public OkHttpClient getUnsafeOkHttpClient() { try { final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { @Override public void checkClientTrusted( java.security.cert.X509Certificate[] chain, String authType) { } @Override public void checkServerTrusted( java.security.cert

Setup AsyncHttpClient to use HTTPS

早过忘川 提交于 2019-11-27 04:22:38
问题 I am using com.loopj.android:android-async-http:1.4.9 for my request to server. It was working fine until I SSL/TLS is required in my server. So I need to modify my AsyncHTTPClient to use HTTPS in all URLs. I checked this similar how to make HTTPS calls using AsyncHttpClient? but did not provide clear solution to the problem. The accepted solution was not secure as well because of this warning from the library itself: Warning! This omits SSL certificate validation on every device, use with

Classic ASP Outbound TLS 1.2

北慕城南 提交于 2019-11-27 01:29:50
问题 We use a web API call to UPS to check address information. They are requiring TLS 1.2 and the switch has broken our page. <% If ACTION="Verify" and ncSCountry="USA" and ncSState<>"PR" and ncSState<>"AA" and ncSState<>"AP" and ncSState<>"AE" then Dim sXML sXML = "<?xml version='1.0'?>" sXML = sXML & "<AccessRequest xml:lang='en-US'>" sXML = sXML & "<AccessLicenseNumber>XXXXXX</AccessLicenseNumber>" sXML = sXML & "<UserId>XXXX</UserId>" sXML = sXML & "<Password>XXXX</Password>" sXML = sXML & "<

How to test which version of TLS my .Net client is using

北城以北 提交于 2019-11-27 01:13:39
问题 I support a .NET site which (amongst many, MANY, other things) talks to remote APIs from supplier systems. We want to upgrade to support TLS 1.2 We're hoping to do so as per this question: Are there .NET implementation of TLS 1.2? But how do I check that this is actually working once I've made the change. Ideally one of my supplier sites would start using TLS 1.2 ONLY and then my test could just be "can we talk to that supplier now?" But we don't have that. I'm guessing I can do something

Enable TLSv1.2 and TLS_RSA_WITH_AES_256_CBC_SHA256 Cipher Suite

妖精的绣舞 提交于 2019-11-27 01:07:18
问题 Server: TLS Version: v1.2 Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA256 Client: JRE 1.7 I am receiving the below error when I try to connect to the Server from Client through SSL directly: Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) The below code enables TLSv1.2 Set<String> enabledTLSSet = new HashSet<String>(Arrays.asList

Chrome “Active content with certificate errors”

自古美人都是妖i 提交于 2019-11-27 00:46:17
问题 We recently updated our ZNC server (don't think this matters) with a new certificate to include a Subject Alternative Name (SAN) DNS field. It works now in incognito but my existing session shows the error "This page is not secure (broken HTTPS)." with the below details: Active content with certificate errors You have recently allowed content loaded with certificate errors (such as scripts or iframes) to run on this site. I am searched but am not finding anything related to more detail on

TLS 1.2 + Java 1.6 + BouncyCastle

杀马特。学长 韩版系。学妹 提交于 2019-11-26 21:56:26
问题 For supporting HTTPS connections through a Java 1.6 API to remote hosts using TLS 1.2, we have developed a customized TLS SocketConnection factory based on Bouncy Castle Libraries (v. 1.53) It's very easy to use, just: String httpsURL = xxxxxxxxxx URL myurl = new URL(httpsURL); HttpsURLConnection con = (HttpsURLConnection )myurl.openConnection(); con.setSSLSocketFactory(new TSLSocketConnectionFactory()); InputStream ins = con.getInputStream(); During testing, I connect different web and