ssl

Traefik + Consul not generaitng SSL certificates in replicated mode, using TRAEFIK DEFAULT CERT

╄→尐↘猪︶ㄣ 提交于 2020-07-21 10:25:25
问题 I have a setup of 1 master and 2 worker nodes running docker swarm. I deployed Traefik + Consul using the setup below: version: '3.3' services: consul-leader: image: consul:latest command: - agent - -server - -client=0.0.0.0 - -bootstrap - -ui environment: CONSUL_BIND_INTERFACE: eth0 CONSUL_LOCAL_CONFIG: '{"leave_on_terminate": true}' volumes: - consul-data-leader:/consul/data networks: - default - traefik-public logging: driver: json-file deploy: labels: traefik.tags: traefik-public traefik

How can I add SSL in keycloak in docker

て烟熏妆下的殇ゞ 提交于 2020-07-21 06:48:13
问题 I'm having an issue adding SSL certificate to Keycloak that is running on docker. I got an SSL Certificate from AWS EC2 with Load Balancer, but don't know how to add it to Keycloak on docker. I was looking through Google but nothing found yet. Also when i go to page like: https://stackoverflow.com, the ssl works perfectly. But when I try to open https://stackoverflow.com:8443 (since 8443 is the port of Keycloak) its not working. Here's the code of Dockerfile of Keycloak: FROM jboss/keycloak:4

Message “28000: no pg_hba.conf entry for host \”xx.xxx.xxx.xxxx\“, user \”User“, database \”databasename\“, SSL off”

元气小坏坏 提交于 2020-07-20 11:44:12
问题 I 'm trying to connect postgresql database remotely ( Heroku ). I use ASP Web api but always i have the same exception :Message "28000: no pg_hba.conf entry for host \"xx.xxx.xxx.xxxx\", user \"User", database \"databasename\", SSL off" I search some solution by editing the pg_hba.conf file and i add : host databasename username xx.xxx.xxx.xxxx md5 and no change . 回答1: Add sslmode=Require; and Trust Server Certificate=true; in your connection string.It will work for sure. 回答2: Heroku Postgres

“unknown ca” with self-generated CA, certificates and client/server

会有一股神秘感。 提交于 2020-07-19 18:35:51
问题 I'm writing a custom client & server that I want to communicate securely over the public Internet, therefore I want to use OpenSSL and have both ends do peer verification to ensure that my client isn't mis-directed by a MITM, and likewise that an unauthorized client isn't able to connect to the server. This is the error received from the server during the SSL_connect / SSL_accept phase: 15620:error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:ssl\record\rec_layer_s3.c:1528:SSL

How to correctly use Nginx as reverse proxy for multiple Apache Docker containers with SSL?

我的未来我决定 提交于 2020-07-19 06:03:39
问题 Given the following docker containers: an nginx service that runs an unmodified official nginx:latest image container name: proxy two applications running in separate containers based on modified official php:7.4.1-apache images container names: app1 and app2 all containers proxy , app1 , and app2 are in the same Docker-created network with automatic DNS resolution With the following example domain names: local.web.test local1.web.test local2.web.test I want to achieve the following behavior:

Can we avoid spring boot application restart, to refresh the certificates associated with its embedded tomcat container?

风流意气都作罢 提交于 2020-07-19 05:28:10
问题 With any change to the SSL certificates (in its keystore), we need to restart the spring boot application. I want to update my key store entry periodically (may be every year), but want to avoid restarting the JVM. What would it take to achieve it. I wonder if writing custom KeyManager is an acceptable practice? 回答1: Unfortunately, this is not possible. BUT You have several solutions here. Reload Tomcat connector (a bit hacky) You can restart Tomcat connector i.e. restart 8843 is possible

Can we avoid spring boot application restart, to refresh the certificates associated with its embedded tomcat container?

China☆狼群 提交于 2020-07-19 05:28:07
问题 With any change to the SSL certificates (in its keystore), we need to restart the spring boot application. I want to update my key store entry periodically (may be every year), but want to avoid restarting the JVM. What would it take to achieve it. I wonder if writing custom KeyManager is an acceptable practice? 回答1: Unfortunately, this is not possible. BUT You have several solutions here. Reload Tomcat connector (a bit hacky) You can restart Tomcat connector i.e. restart 8843 is possible

WebSocket WS SSL

家住魔仙堡 提交于 2020-07-19 05:05:39
问题 I'm using Google App Engine/Managed VMs to develop a nodeJS application using web sockets. As part of the app, the front end needs to connect using Websockets e.g. connection = new WebSocket('wss://127.0.0.1:3001'); The bit that I'm struggling with is how to ensure that the SSL part works. My current code to start the WebSocketServer is: var WebSocketServer = require('ws').Server; var wss = new WebSocketServer({port:3001}); but this only creates a standard server (ie ws://127.0.0.1:3001). My

Mixed Content error when accessing WebSocket server hosted in a different port

旧巷老猫 提交于 2020-07-18 10:36:33
问题 I've set up an express server with node.js on port 80 (http) and 443 (https). Separate from that server, I've set up a websocket server in a separate port, 8000 : var WebSocketServer = require('ws').Server; var wss = new WebSocketServer({port: 8000}); The site served by express must connect to those services to work. The issue is: accessing my site through http works fine, but, from https , I get: index.js:100 Mixed Content: The page at 'https://example.com/' was loaded over HTTPS, but

Upload file to implicit FTPS server in C# with TLS session reuse

一个人想着一个人 提交于 2020-07-18 08:07:23
问题 I'm trying to upload file to FileZilla server through ftps by protocol TLS. On the server port 20 and 21 is closed. The only way how I managed to connect to server is by using FluentFTP but I couldn't upload file because of some FileZilla server bug. https://github.com/robinrodricks/FluentFTP/issues/335 https://forum.filezilla-project.org/viewtopic.php?t=51601 public static void UploadTest( string pathUploadFile, string addressIP, int port, string location, string userName, string password) {