HTTPS Cert in a VM/LXC

Abergr

Active Member
Oct 2, 2016
10
1
43
47
First post ever, but this one I cannot crack myself, so I ask the community for help.
I'm trying to setup a VM with in Promox with one fixed public IP. I have followed the instructions and setup a bridged network, attached the VM, and LXC "VM", to the bridged vmbr0.
All works, I can ssh to the VM from outside the world, and the web server answers on the port(s) 80 and 443. All good there.
BUT, Nginx should be answering with SSL on 443, and Nginx does if you test port 443 on the VM.
When I try to connect to the VM from any other host Nginx answer without any SSL.
I.e https://myVM.com, i get a ssl error.
If I instead use http://myVM.com:443, i get the web page, but not encrypted.
This is confirmed when I test it with:
openssl s_client -connect 1.2.3.4:443. Running it on the VM, all good, running it on the LAN or from outside the world, empty ssl response. "
New, (NONE), Cipher is (NONE)"

Why is that? I tried with both a LXC container and with a "real" VM, same issue. I have the very same setup with Virtualbox from Oracle, no issues, so something differ, but what?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!