Skip to content

Instantly share code, notes, and snippets.

@xionglun
Created January 6, 2016 05:31
Show Gist options
  • Save xionglun/e8986aa675835ee8f9f9 to your computer and use it in GitHub Desktop.
Save xionglun/e8986aa675835ee8f9f9 to your computer and use it in GitHub Desktop.
openssl RSA key & crt generator
#!/usr/bin/env bash
openssl req -new -newkey rsa:2048 -nodes -out hello_abc_com.csr -keyout hello_abc_com.key -subj "/C=US/ST=New York/L=New York/O=ABC Inc./OU=IT/CN=hello.abc.com"
openssl x509 -req -days 365 -in hello_abc_com.csr -signkey hello_abc_com.key -out hello_abc_com.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment