ssl

Configure JettyTestContainer with SSL for JerseyTest

拥有回忆 提交于 2021-01-27 21:11:19
问题 I've been tasked with setting up integration tests for my team's code. These tests will require performing HTTPS requests to REST endpoints implemented in Jersey 2.27. In my search for how to perform this kind of test, I stumbled upon this article from Baeldung that pointed me to the Jersey Test Framework and the provider containers they've implemented for this purpose. I chose the Jetty container, as our code was using a 'roll your own' Jetty instance to do all this. I began the

The specified data could not be decrypted

人盡茶涼 提交于 2021-01-27 21:07:58
问题 sslStream.AuthenticateAsServer(_certificate, false, SslProtocols.Tls | SslProtocols.Ssl3 | SslProtocols.Ssl2, true); I get the following error message when I use the above function to authenticate a client. This happens only after sometime for subsequent requests. I have no clue on what it could be. I am reusing the certificate from cache which I earlier used successfully. Looking for a possible reason. "A call to SSPI failed, see inner exception." Inner Exception:"The specified data could

The request was aborted: Could not create SSL/TLS secure channel - IllegalMessage

大城市里の小女人 提交于 2021-01-27 18:53:24
问题 I have seen few similar questions regarding this topic on SO, but it seems that none of the answers really helps to resolve it. I need to reach customer webservice with certificate authentication. It works fine using SoapUI and chrome after selecting correct certificate when prompted. But I am not able to reach the service with IE, WCF client, not my own, nor WcfTestClient. OS is Windows server 2012 R2, protocol TLS 1.2 I have been investigating events, tracelogs, also spend quite some time

.NET Core gives unknown error while processing HTTPS certificate [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-27 14:31:43
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question I'm trying to build a .NET Core server that uses a HTTPS connection. I created a self-signed certificate using dotnet dev-certs tool and set up Kestrel like this: return WebHost.CreateDefaultBuilder(args) .UseKestrel(options => { options.Listen(IPAddress

Nuxt.js problem with server-side API call with https

只谈情不闲聊 提交于 2021-01-27 12:12:45
问题 I have problem with nuxt server-side API call when im using HTTP S . On client side everyting is fine and API works when im switching pages on client side via links, but when I hit Ctrl + f5 and data will be pre-fetched on server side, there is no actually API call and data is not provided. Even no error is thrown, but eveything works just fine with plain HTTP. On my production server nodejs version - v10.9.0 And for HTTPS im using SNI SSL provided via my nodejs web hosting provider This

How can I make my nextjs with Express site work on ssl

你。 提交于 2021-01-27 10:20:00
问题 We have a site running on Next.js and Express. This is on a cPanel server with Aapche and together with nginx serving as reverse proxy. I need to have ssl on the site. But I am quite confuused with how the configurations should be. My server.js : const express = require('express') const next = require('next') const https = require('https'); const fs = require('fs'); //const forceSSL = require('express-force-ssl') var ssl_options = { key: fs.readFileSync('/home/myreactsite.key'), cert: fs

How can I make my nextjs with Express site work on ssl

[亡魂溺海] 提交于 2021-01-27 10:18:52
问题 We have a site running on Next.js and Express. This is on a cPanel server with Aapche and together with nginx serving as reverse proxy. I need to have ssl on the site. But I am quite confuused with how the configurations should be. My server.js : const express = require('express') const next = require('next') const https = require('https'); const fs = require('fs'); //const forceSSL = require('express-force-ssl') var ssl_options = { key: fs.readFileSync('/home/myreactsite.key'), cert: fs

TLS connection handshake Failure

馋奶兔 提交于 2021-01-27 08:30:14
问题 We have difficulties to make https connections to the remote machines (like PayPal vb.) who disabled SSL3 protocol from our .Net application. We are getting following exception on GetResponse method of HttpWebRequest instance. The request was aborted: Could not create SSL/TLS secure channel. When we go depth and trace network logs with WireShark, we see that remote machine return the following error TLSv1.2 Alert (Level: Fatal, Description: Handshake Failure) Handshake Failure 40 More

restify JSON client returns DEPTH_ZERO_SELF_SIGNED_CERT error

半腔热情 提交于 2021-01-27 07:22:53
问题 I have server runing on heroku with heroku SSL addon. Server is created with this options: name: 'ServerName', version: '1.0.0', And the I run server like this: server.listen(process.env.PORT || 5000) And it works fine, I can call my api for example: https://myapp.herokuapp.com/some-path. SSL cert on heroku is self-signed so there is a big warning in webbrowser but I can click continue and it works. When I want to call my server with restify JSON client, created as follows: var client =

restify JSON client returns DEPTH_ZERO_SELF_SIGNED_CERT error

ぃ、小莉子 提交于 2021-01-27 07:17:53
问题 I have server runing on heroku with heroku SSL addon. Server is created with this options: name: 'ServerName', version: '1.0.0', And the I run server like this: server.listen(process.env.PORT || 5000) And it works fine, I can call my api for example: https://myapp.herokuapp.com/some-path. SSL cert on heroku is self-signed so there is a big warning in webbrowser but I can click continue and it works. When I want to call my server with restify JSON client, created as follows: var client =