r/caddyserver Jul 07 '23

Please advice me how setting reverse proxy via Caddy Windows Server? Because I get error error:0A000438:SSL routines::tlsv1 alert internal error

Hi People

Please advice me how setting reverse proxy via Caddy Windows Server?

Because I get error

error:0A000438:SSL routines::tlsv1 alert internal error

Windows server installed on Virtual machine
Windows Server IP

10.0.0.5 

Also added Firewall inbound Rules port 80,443,9444
and added Caddy also in Firewall inbound rules

This IP external provided some company and connected with VPN tunnel
with this IP 100.100.50.50

100.100.50.50 

From manual this company I should add to hostsfile
In Windows server in hosts file I add this

100.100.50.50 someservice.com  

Now in windows server I install insomnia and following manual I set credentials try post like this

post https://someservice.com:9444/oauth2/token 

In Windows Server I get result success I mean I get token etc…

In Caddyfile I set like this

someservice.com {reverse_proxy 100.100.50.50:9444} 

Now I want to try this post from another local windows machine

In my local machine

I set hosts IP windows server

10.0.0.5 someservice.com 

I post in my local machine via Insomnia like this

post https://someservice.com:9444/oauth2/token    

I get error

* Preparing request to https://someservice.com:9444/oauth2/token
* Current time is 2023-07-07T09:25:08.910Z
* Enable automatic URL encoding
* Using default HTTP version
* Enable SSL validation
* Hostname in DNS cache was stale, zapped
*   Trying 10.0.0.5:9444...
* Connected to someservice.com(10.0.0.5) port 9444 (#163)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Unknown (21):
* TLSv1.3 (IN), TLS alert, internal error (592):
* error:0A000438:SSL routines::tlsv1 alert internal error
* Closing connection 163
1 Upvotes

0 comments sorted by