oneliners/bash/instantcert.sh

6 lines
363 B
Bash
Raw Permalink Normal View History

2021-01-25 01:38:18 +01:00
#!/bin/bash
# http://www.akadia.com/services/ssh_test_certificate.html
# create and sign openssl-cert
openssl genrsa -des3 -out server.key 1024 && openssl req -new -key server.key -out server.csr && cp server.key server.key.org && openssl rsa -in server.key.org -out server.key && openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt