Created
October 7, 2012 19:10
-
-
Save webgago/3849265 to your computer and use it in GitHub Desktop.
Openssl with gost
This file contains 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
openssl req -engine gost -newkey gost2001 -pkeyopt paramset:A -passout pass:11111111 -subj "/C=RU/ST=Moscow/L=Moscow/O=foo_bar/OU=foo_bar/CN=developer/[email protected]" -keyout private.key.pem -out csr.csr | |
openssl x509 -engine gost -req -days 365 -in csr.csr -signkey private.key.pem -out crt.crt | |
openssl x509 -engine gost -inform pem -in crt.crt -pubkey -noout > public.key.pem | |
openssl dgst -engine gost -hex -sign private.key.pem message.xml | |
openssl smime -engine gost -sign -inkey private.key.pem -signer crt.crt -in message.xml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
openssl x509 -in crt.crt -noout -text