Linux How to generate self-signed SSL certificate Self-Signed SSL Certificate for those who need encription fast. It is possible to generate and sign certificate with one line command: openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout server.