Skip to content

Instantly share code, notes, and snippets.

@alexgorbatchev
Created September 9, 2014 13:26
Show Gist options
  • Save alexgorbatchev/2df87f8e4d0def98bd5c to your computer and use it in GitHub Desktop.
Save alexgorbatchev/2df87f8e4d0def98bd5c to your computer and use it in GitHub Desktop.

Revisions

  1. alexgorbatchev created this gist Sep 9, 2014.
    6 changes: 6 additions & 0 deletions generate_cert.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash

    openssl genrsa -out key.pem
    openssl req -new -key key.pem -out csr.pem
    openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
    rm csr.pem