Certificate created but visible

I am using certbot to activate HTTPS or basically get an SSL certificate for my DigitalOcean droplet. Here is my nginx config file:

server {
listen 80;
listen [::]:80 ipv6only=on default_server;

# SSL configuration

 listen 443 ssl default_server;
 listen [::]:443 ssl default_server;

# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
# include snippets/snakeoil.conf;

root /var/www/html;

# Add index.php to the list if you are using PHP
# index index.html index.htm index.nginx-debian.html;

server_name eenstukjenostalgie.amsterdam www.eenstukjenostalgie.amsterdam;

location / {
	# First attempt to serve request as file, then
	# as directory, then fall back to displaying a 404.
	proxy_pass http://localhost:4000; 
	proxy_http_version 1.1;
	proxy_set_header Upgrade $http_upgrade;
	proxy_set_header Connection 'upgrade';
	proxy_set_header Host $host;
	proxy_cache_bypass $http_upgrade;


After running the command sudo certbot certonly --manual the certificate is created with success. But when opening the website with https it is not working… What am I missing?

1 Like

Hi @solideagency


certonly doesn’t create or update a port 443 vHost.

So install the certificate manual or use

certbot --reinstall

Wauw, JuergenAuer thanks a lot! It solved the problem :slight_smile:


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