Re: HELP! SSLv3 to TLSv1.2

Christopher Schultz <[email protected]> Fri, 7 Jun 2019 14:24:46 -0400
Newsgroups gmane.network.stunnel.user
Message-ID <[email protected]>
Eric,

On 6/7/19 13:53, Eric Eberhard wrote:
> I have a weird problem.  A remote site that has always used SSLv3 wants
> to use TLSv1.2 – normally that takes 5 seconds in the config file.
> 
> However, the remote site supplied the software that sends to them … and
> does not supply a version we can use unless we upgrade O/S and JAVA and
> who knows what else for hundreds of customers.  In four days.

If this is Java, then the problem is likely with the JVM only and they
might be able to get away with just upgrading the version of Java. They
are probably using Java 6. If they move up to Java 8 (which is just
about to be relegated to the digital dustbin!), then they get TLS 1.2
and, most likely, they won't see any compatibility issues.

Most outfits won't upgrade their Java version because they are scared.,
ignorant, and/or don't have a good testing process. I've never had a
problem upgrading Java. Not even to the later weirdo "modular" ones.

> Normally stunnel takes in clear text and sends it out in whatever you
> like (TLSv1.2 in this case).  And the reverse.
> 
> Can it take in SSLv3 and convert to TLSv1.2?

I do not believe you can do this with a single stunnel. stunnel connects
cleartext to encrypted or vice-versa, depending on the value of the
"client" setting.

But, the solution is simple: use two stunnels.

So, let's say that you need to "proxy" a connection incoming on port 443
out to another server on port 8443. The 443 traffic requires TLSv1.2 and
the 8443 traffic can only handle SSLv3. Do something like this:

[incoming]
protocol=TLSv1.2
accept=localhost:443
connect=localhost:444
client=false

[outgoing]
protocol=SSLv3
accept=localhost:444
connect=remote:8443
client=true


(The above are obviously not exact. You can't specify a protocol for a
specific service, you can't specify both client=true and client=false in
 the same file, etc. Finally, you probably don't want to LIMIT the
outgoing connection to SSLv3. You want it to handshake whatever it can
get its hands on.)

> Of course conceptually
> this is easy and just a logical extension of stunnel – in practice, if
> not there, it would be a job.  Which I might tackle – but I first wanted
> to get community input.

I think configuring two tunnels gets the job done without writing any
new software.

-chris

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc (application/pgp-signature, 899 B)
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlz6q+4ACgkQHPApP6U8
pFijUg//QG63njQp0Ly2GOLdWGbAFGqQAXq4VFApuCEjX8RPMtZdXd2OdVit5+Jx
i80RbZD4nPEiPjxp4vSDUX2q2M3Ot281papmdP9rt5ispOIXvze/IEij//XwDQp+
lrUt2m3XNn86RB8rgnfMJjdWZzF3i+H62ZEGHfPzBzIMj5LpGTIRAW5/QbR9q8Dt
wXHQ9SYjHAgi1S0Jz9ZWkvhqR8kz66ngwVUp0Ddj91IdPf47TOy7VpeyDiRFsl0K
W+ZMLkfleSTz5yDa17Jcqj2avoZHkKg5iax4qV3fRmiIXSjzUEw9x0C0wNTW1Lpw
J1Ko4TGuuGyncZ9LQaXqmhHC8lklI1pgSUjqWym1k2jK0CJH4VgejU0SdU7MoM0l
U3h8EozcU8NwbFl6XOIiSE0DIOYgy6A7K5axAhJm0OlK6j6ElnYIv2/xXwyw/K/s
3L+Vswx5wL0/x9Y47jWVI/H0N7rXCq5y5lfE440ER4N4zLrNHh3ZMn1YU7435NcA
vGGvCySXIaAyE6X0KHFVeSh0Wh0VbNeubx30mrY7JQJv4Y7+Z5ClLcYpO/frAjc1
fgelO3K/j4gLVfU/pIV22vRDbLCo03rgAsKRFIonxQbU3Pk8LD/waWNPv9pX3s5a
Ox1Xqb8mIRV4p56HyFC6IYALq9OfH8HhjNQKUkrjP9IsBihsh2o=
=SGpg
-----END PGP SIGNATURE-----