Re: Connect using TLS with public Web Server

Peter Pentchev <[email protected]>
Newsgroups gmane.network.stunnel.user
Message-ID <[email protected]>
On Mon, Mar 05, 2018 at 12:32:41PM +0100, Carlos Castro wrote:
> Hello ,
> 
> Thanks @Peter
> 
> I'm trying to configure to connect with my PC to this Public server
> https://ctm.omgeo.net using TLS1.2 but i don't can.
> 
> I'm need setup stunnel for old application doesn't support TLS , and this
> application need connect with this public server to send data.
> 
> 
> I'm using the Peter config , but nothing . I try this config :
> 
> [omgeo]
> client = yes
> accept = 127.0.0.1:19201
> connect = ctm.omgeo.net:443
> verify = 2
> CApath = /etc/ssl/certs/
> 
> 
> I'm using Curl to try connect  , I'm recive this error
> 
> /etc/ssl/certs# curl -v https://127.0.0.1:19201

Maybe I'm reading this wrong, but if your client application does not
support TLS, then it won't speak HTTPS, it would speak plain HTTP.
That's what the configuration you're using does - it tells stunnel to
run in client mode, i.e. something will connect to stunnel using
an unencrypted connection and stunnel will connect to a TLS server
(in this case an HTTPS server).

So what happens when you try almost the same query, but with the "http"
scheme instead of the "https" one?

  curl -v http://127.0.0.1:19201

G'luck,
Peter

-- 
Peter Pentchev  [email protected] [email protected] [email protected]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13

_______________________________________________
stunnel-users mailing list
[email protected]
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAlqdNowACgkQZR7vsCUn
3xOiFxAAzbsTy84eLPtguOzjBoqGGbN+SJ3gS1AllUU/6fc1bQUMLNnvsgtR5Xzd
VJ4dt0HRJ7pOgkEuw3mBq3LtOfXDFebjW4+1vkwhw+SbVAa62ouXgWdBpf7u3+cM
yhCKWRXMYPwjbCLamEuhBFeAzJGvXytnoNlDbxkgRzqHE2y2iW820Ik/65hftEdG
F7uedZoSfV0JsX+6LHVbo/jrmyNELoaAohRJIGcFjHEHo5oDavmDnoF7OdvmGwtB
96iLcdaIGp+nyNHXRo+3ROF1I8g5GZdGOggcPtFcUIvBsE83az1hJFINnImkavkz
j+zRxASWTuBg3GIiL54conV7yYWx93cvIPoGIaY4yfXq7cgrFF64IHYZ25PwGs3m
nJwJ6gUsG4imVigdspxMbu5CL/DppDzRblbdq2jFGcg6gW+Vl5GfjcDL9ipFDEg5
KFJ75fnMmG9Iw1KOqGK5vtAfXkv9hRFe8aWyCiNN0m+jsFhzPu7hfj2d5S3Gz5V0
NSkAuTZWfYqq+F+y8uZw+jfpaPmT2fWKKTGScJ3mRrGPjq3kE8KOFZn9dF1ADb1H
QnJ0oByISYGXFx1h046uq3sTG4OehtXsFHNBMqpaCHnH6PTfLA2ku/mxZBqAvWHG
4nplkANiNgNyYasPzBbCuh0pWNcXQ7XGX9HLCRky4NWvgvF946U=
=jXov
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.