
Is $SUBJECT possible? I use stunnel to connect to my old "smart" switches that don't support modern TLS protocols, ciphers, etc. Recently, their existing certificates all expired, and I tried to install new certificates on all of them, only to discover that they won't accept my new CA certificate, because it was signed with a 3072-bit key. I could go through the trouble of generating a separate CA certificate with a 2048-bit key, sign new certificates with that key, etc., etc., but it starts to seem a bit silly at that point. Far better to simply generate a self-signed certificate for each switch and configure stunnel to only accept that particular certificate (i.e. "pin" it). Is this possible with stunnel? If so, how would I go about configuring it to do this? (Search engines are telling me to use "verify = 4", but stunnel(8) says that option is obsolete.) TIA! -- ======================================================================== If your user interface is intuitive in retrospect ... it isn't intuitive ========================================================================

11 Oct 2025 17:41:57 Ian Pilcher via stunnel-users <stunnel-users@stunnel.org>:
Is $SUBJECT possible?
Yes, it is.
(Search engines are telling me to use "verify = 4", but stunnel(8) says that option is obsolete.)
Use "verifyPeer = yes" with modern versions of stunnel. Best regards, Mike
participants (2)
-
Ian Pilcher
-
Michał Trojnara