One cert for domain and domain:port

My domain is: footeware.ca

I ran this command: sudo certbot certonly -a standalone -d footeware.ca

It produced this output: success

My web server is (include version): Tomcat embedded in Spring Boot executable jar

The operating system my web server runs on is (include version): ubuntu 20.10

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 1.22.0

I have an LE cert for footeware.ca that works perfect. My next problem is that one of the webpages I serve up has an iframe whose content should be from https://footeware.ca:8081/MJPEG.CGI?.mjpeg, a webcam. If I use http I get a 'mixed content' error. Can I generate the cert like this?

sudo certbot certonly -a standalone -d footeware.ca -d footeware.ca:8081

No.
The cert was already generated.
You can check that with:
certbot certificates

What you now need to do is to use that cert with whatever service runs on port 8081 (or its' secured equivalent port).

2 Likes

OK, thanks. It's becoming clearer to me now. Unfortunately the webcam's server is unable to use the cert to my knowledge. I'll have to figure something else out. Perhaps a little app internally that gets the webcam image and saves it locally for the webpage to pick up... Weeee!

You could put it behind a secured reverse proxy.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.