How to property generate self signed certificates and use them in nginx

I used openssl to generate the following certificates: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt -subj “/C=IT/ST=Mi/L=Milan/O=MyOrg/OU=RnD/CN=localhost/emailAddress=info@myorg.com” openssl rsa -in server.key -out server.insicure.key cat server.insicure.key > certificate.pem cat server.crt >> certificate.pem I then setup nginx to client-secure a site: server { listen 80 ssl; root /var/www/site; index index.html; ssl_certificate /root/server.crt;…

Debian: “apt install build-essential” fails because of unmet dependencies

Using Debian Stretch v9.11. I try to install build-essential, but fails because of unmet dependencies: sudo apt install build-essential Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that…