Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Is it possible to add Public Key Pins with a self-signed Certificate?
https://developer.mozilla.org/en/docs/Web/Security/Public_Key_Pinning HPKP has the potential to lock out users for a long time if used incorrectly! The use of backup certificates and/or pinning the CA certificate is recommend.
From a security perspective I think this tutorial is somewhat outdated. There should be no reason to use self signed certificates since Let’s Encrypt will generate valid certificates for free.
Teaching people to ignore certificate warnings is something that should be avoided at all times.
Expecting the reply “But what if you’re not connected to the internet?”, well in that case you can set up your own internal Certificate Authority so you can generate internal valid certificates that will not show your users a certificate warning, assuming you properly install the root CA certificate on each client.
Just my two cents when it comes to security.
Cheers, Jeroen - IT Nerdbox
Hi, thanks for this. It has come in handy as I needed to set a default server for https.
Does this certificate expire? And if so whats the best way of extending it, or auto renewing it?
Nice Post very useful. I have played around with this and could get secure my site. But I have this issue which my site do not load this css https://ui-grid.info/release/ui-grid-unstable.css. When I look at the networks on the browser, I see that is css is not loaded because of the https. So I decided to hit it directly on my browser and I had Your connection is not secure. I could get a partial solution by adding that exception manually into my browser. After doing so, my site could load that css without any issue. But this is not a solution for me because my users won’t get the functionalities of that css on their browser. Another solution will be downloading that css directly and adding it into my server as css but I don’t know why but when I do so the css do not have the same behaviour as when my site download it itself. So I thought of this rendering the link https://ui-grid.info/release/ui-grid-unstable.css automatically trustable on nginx (all browsers using my site will get the link without any issue). I was wondering if this is possible with some nginx configuration. Something like thing add_header Trusteeship-Site https://ui-grid.info/release/ui-grid-unstable.css;
Any clue please? Thanks
After following all the steps, when I load up my domain, I’m getting the following error in chrome and similar in Firefox:
ERR_TOO_MANY_REDIRECTS
I used the two server block config, and my site is being redirected to https… but something’s not right. Any suggestions?
What if I exclude http2 in the line for config file…Will it still work seamlessly ?
Simplest way (and cheaper, it’s free!) is to use Certbot, see plug-and-play procedure at https://certbot.eff.org/#ubuntuxenial-nginx
Hi, Thanks for this very useful post. Just had a doubt regarding this, Do i need to create individual ssl certificate for each sub domain or there is any method for adding wild card entries ?
ERR_TO_MANY_REDIRECTS
This is my config:
server { listen 80 default_server; listen [::]:80 default_server; server_name keendelivery.app;
return 302 https://$server_name$request_uri;
}
server {
# SSL configuration
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;
root /home/henk/project/jetverzendt/public;
index index.php;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
try_files $uri $uri/ =404;
}
}
The line
return 302 https://$server_name$request_uri;
should actually read
if ($scheme = http) return 301 https://$server_name$request_uri;