Created
January 6, 2016 05:31
-
-
Save xionglun/e8986aa675835ee8f9f9 to your computer and use it in GitHub Desktop.
openssl RSA key & crt generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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