From 4d17e268817129fe00c2d2b08d4e7ffed066ec8d Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Mon, 13 Feb 2017 18:02:58 +0800 Subject: [PATCH] =?UTF-8?q?Destroyed=20=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 命令行工具.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 命令行工具.md diff --git a/命令行工具.md b/命令行工具.md deleted file mode 100644 index a2e1a08..0000000 --- a/命令行工具.md +++ /dev/null @@ -1,37 +0,0 @@ -显示GmSSL版本 - -``` -gmssl version -``` - -生成SM2密钥 -``` -gmssl genkey -algorithm EC -out sm2key.pem \ - -pkeyopt ec_paramgen_curve:sm2p256v1 \ - -pkeyopt ec_param_enc:named_curve -``` - -打印SM2密钥 -``` -gmssl pkey -text -noout -in sm2key.pem -``` - -导出SM2公钥 -``` -gmssl pkey -in sm2key.pem -pubout -out sm2pubk.pem -``` - -生成SM2数字签名 -``` -echo "message to be signed" | \ -gmssl pkeyutl -sign -inkey sm2key.pem \ - -pkeyopt ec_sign_algor:sm2 > sm2.sig -``` - -验证SM2数字签名 -``` -echo "message to be signed" | \ -gmssl pkeyutl -verify -inkey sm2pubk.pem \ - -pkeyopt ec_sign_algor:sm2 -sigfile sm2.sig -``` -