This question has been flagged
1 Reply
3347 Views

I run Odoo12 POS secure server. The POSBOX v (20.02) is also secured via NGINX and a self signed certificate. 

Problem is; Because the self signed certificate, Odoo POS still will show a mixed content error. This is unless one enters the POSBOS via its IP (e.g. https://123.123.123.1) first and accept the certificate.

Only thereafter you can start POS without error message and a running POSBOX.


My solution would be to install letsencrypt (or similar) on POSbox and install a certificate onto the POSbox. But as POSbox image runs as read-only there is no (easy) way to install additional software on the POSbox.


Has anyone solved this issue yet? The webkul solution  (https://webkul.com/blog/serve-odoo-posbox-over-https/) is only a partial solution because if you forget to accept the certificate first it even might result in crashing odoo server (needs reboot).

Avatar
Discard
Best Answer

Hello,

You can install some package in with chroot but the box must be writable:

sudo mount -o remount,rw /

sudo mount -o remount,rw /root_bypass_ramdisks/

sudo chroot /root_bypass_ramdisks/


But you install letsencrypt and after ?

A certificate is linked to a domain and your box haven't a domain...

You need a DNS server to resolve a subdomain to you local ip



Avatar
Discard
Author

I plan to create a wildcard certificate *.mydomain.com and then assign the nginx on the POSBOX a name e.g. posbox.mydomain.com. My hope is that I can use the same certificate on the POSBox