Skip to content

Instantly share code, notes, and snippets.

@sandikodev
Created June 2, 2021 13:44
Show Gist options
  • Save sandikodev/89b83d70e6eae4ba6c564f2eada583e6 to your computer and use it in GitHub Desktop.
Save sandikodev/89b83d70e6eae4ba6c564f2eada583e6 to your computer and use it in GitHub Desktop.

Revisions

  1. sandikodev created this gist Jun 2, 2021.
    8 changes: 8 additions & 0 deletions openssl cheatsheet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #create public key
    openssl req -x509 -new -nodes -keyout pub.key -out pub.pem

    #create keynodes
    openssl req -new -nodes -keyout nas.key -out nas.pem

    #register keynodes to publickey
    openssl x509 -req -CA pub.pem -CAkey pub.key -in nas.pem -out nas.crt -set_serial 01