Questions tagged [stunnel]

Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code. Its architecture is optimized for security, portability, and scalability (including load-balancing), making it suitable for large deployments.

Stunnel is a proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code. Its architecture is optimized for security, portability, and scalability (including load-balancing), making it suitable for large deployments.

Stunnel uses the OpenSSL library for cryptography, so it supports whatever cryptographic algorithms are compiled into the library. It can benefit from the FIPS 140-2 validation of the OpenSSL FIPS Object Module, as long as the building process meets its Security Policy. A scanned FIPS 140-2 Validation Certificate document is available for download on the NIST web page. The Windows binary installer is compiled with FIPS 140-2 support. The FIPS mode of operation is no longer enabled by default since stunnel 5.00.

Stunnel is a free software authored by Michał Trojnara. Although distributed under GNU GPL version 2 or later with OpenSSL exception, stunnel is not a community project. We retain the copyright of the source code. Please contact us for commercial support or non-GPL licenses. Free, community-based support is also available via stunnel-users mailing list.

162 questions
0
votes
0 answers

openssl error 0200274C with host other than localhost

Problem description: I've installed and configured stunnel on my machine, and I can send a test message by: echo "hi" | openssl s_client -connect localhost:5143 But, when I replace localhost with let's say the IP address of this machine, it fails…
FM22
  • 1
  • 1
0
votes
0 answers

App without native ssl used stunnel. Can this work with AWS LB?

I have to migrate an app that needs to send data encrypted between public network and AWS. Currently it uses stunnel client and the server end sits on a DMZ and acts as a web proxy ( terminating the SSL and redirecting port 443 to 8085) In short I…
0
votes
0 answers

Implement ldaps using SSL for a ldap server using TLS Encryption

We use Google Workspace (GWS) which server ldaps (Secure LDAP) over TLS. When creating new LDAP Clients in GWS, we get Bind Username Bind Password Private Key File (.key file) TLS Certificate (.crt file) I want to connect MongoDB Atlas to Google…
retr0
  • 644
  • 6
  • 16
0
votes
1 answer

Taking django application to https

I have a django application running perfectly fine in development server with http://localhost:8081 I need to take it to https. For which I tried 2 methods, but none of them is working. Method1: Using stunnel I installed stunnel and generated cert…
Nikita
  • 425
  • 1
  • 7
  • 19
0
votes
0 answers

client fails in my sockstunnel case in python3

I have a client/server case which is written in python by someone else, and it was working before. Currently I am trying to see if I could have it re-executed but so far no luck. Anyway, this is the python code on client side, which is written in…
user3595231
  • 711
  • 12
  • 29
0
votes
0 answers

SSL/TLS Error when Testing Django API via HTTPS on Localhost

In an effort to test an API via an HTTPS connection locally, I followed the approach described here by Evan Grim where I use stunnel4 as a middleman between my requests and my API server. Here's a minimalist urls.py that will generate a token…
Max Feinberg
  • 810
  • 1
  • 6
  • 21
0
votes
1 answer

Ensuring TLSv1.2 in stunnel?

Please bear with me as I might lack some understanding on creating certificates to achieve a TLS connection. I am trying to establish a connection with TLSv1.2 encrypted from client to server. I have created my own CA certificate and CSR on…
Tsu Wei Quan
  • 335
  • 1
  • 5
  • 19
0
votes
1 answer

How to establish TLS connection between stunnel and Android app with my own certs from my CA

I have stunnel running on my server with the following configuration: [myservice] accept = 12345 connect = 9999 verifyPeer = yes cert = /etc/stunnel/stunnel.pem CAfile = /etc/stunnel/androidApp.crt Both cert and CAfile has been issued by the same…
pion3k
  • 45
  • 5
0
votes
0 answers

Export RSA Keys to stunnel.key

I am trying to export some RSA Public and Private keys. Just to clarify, I am NOT trying to sign the keys. I am trying to take the raw numbers for the keys and export them to stunnel.key. My code for generating RSA Keys: from cryptographer import…
3DCoded
  • 13
  • 1
  • 6
0
votes
1 answer

How to manage certificates using OpenSSL in c++?

I need to manage certificates and containers using openssl in c++, and create stunnel. How can I do this? I've been trying to find any examples or instructions on the internet but found nothing.
Jessica
  • 75
  • 8
0
votes
1 answer

Using openssl s_client to manually fetch data through HTTPS tunnel

I have an interesting requirement to connect using openssl s_client to https website through https tunnel. I have managed to connect through this proxy (proxy_host.com) to my netcat listener on target_host.com and send a message from it which gets…
xwhyz
  • 1,444
  • 4
  • 21
  • 45
0
votes
1 answer

How to install "stunnel" on CloudLinux RHEL Feddora CentOS yum install not working

!!JUST WRITING THIS POST SO THAT SOMEONE CAN SAVE HOURS IN THIS!! I tried a hell lot to install this "stunnel" but was unable to do so I was in my cpanel's terminal What I tried all with 'sudo' yum install stunnel yum -y install stunnel yum install…
0
votes
1 answer

how to mount share folder cifs over stunnel?(secure samba)

I configure stunnel server accept:0.0.0.0:800 connect:127.0.0.1:139 and stunnel client client=yes accept:127.0.0.1:139 connect=serverip:800 and try to mount with this command mount -t cifs -o user=x,password=y,vers=3.0,port=139 //127.0.0.1/test…
gbsec
  • 23
  • 4
0
votes
1 answer

stunnel4 Error. INTERNAL ERROR: Bad magic at ssl.c, line 117

stunnel4 Error. INTERNAL ERROR: Bad magic at ssl.c, line 117. when restart stunnel4 service then solve issue, but after some time face again issue.
0
votes
0 answers

stunnel connection to my server fails first time, then works if session caching is on. What can I change to get it to work the first time?

I have a device in the field connecting to my service via SSL using stunnel. Nice new valid certificate...all other devices work fine. But this one, for some reason, fails on the first attempt to connect. Then, if I have session caching turned…