Hi, I would like to know if it is possible to create a self-signed and valid https page by google, because create a code with openssl in Ubuntu 16.0.4
But when generating the codes and putting them in node, I used to say that the signatures were unsafe for google.
Then you can self-sign and be valid or can you only pay for someone (godaddy) to generate those certificates?
GoDaddy will send me the key and the cert to just add them?
Thanks!
Command
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
Server Code
const https = require("https"),
fs = require("fs");
const options = {
key: fs.readFileSync("/srv/www/keys/my-site-key.pem"),
cert: fs.readFileSync("/srv/www/keys/chain.pem")
};
const app = express();
app.use((req, res) => {
res.writeHead(200);
res.end("hello world\n");
});
app.listen(8000);
https.createServer(options, app).listen(8080);