Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4620

Networking and servers • Apache SSL with public IP

$
0
0
Hey guyz :D

On my router, i have forwarded 80 & 443 ports to my PI ( on bullseye ) local IP

On this PI i run a file samba server ( that works like a charm ) for local file storing and i recently install an apache server

This apache runs a nextcloud server.

Everything works fine when accessing the server through my public IP.

What i wanted next was setting up an SSL connection so that i can access my nextcloud through https://M.Y.I.P
And here's where the pain starts.... Nothing at all works

apache error says the cert does not correspond to my server ID

The thing is that i dont want a domain name. I only want to access my server from outside with only my public IP. Is it just possible ?

Should i insert my public IP in hosts file ?

When generating the SSL files, i enter nothing but my public IP in the common name and when checking the key with

Code:

sudo openssl verify apache.crt
it says ERROR 18: self signed certificate....

I probably messed up my apache conf files with tons of changes coming from legion of tuto websites.....

Could anyone help please ?

Thanks in advance and have a great day !!!

Statistics: Posted by pitibonom — Sat Feb 01, 2025 6:18 pm — Replies 2 — Views 42



Viewing all articles
Browse latest Browse all 4620

Trending Articles