赞
踩
#SM2签名验签过程# #密码应用工作流程图
数字签名的过程:私钥产生签名,公钥验证签名
依旧是,签名验签三要素:数字证书、原文数据、签名值
用户与系统之间的通信数据包
证书导出来,找公钥:
格式:
-----BEGIN CERTIFICATE-----
MIIDQjCCAuigAwIBAgIKGhAAAAAAAAd7szAKBggqgRzPVQGDdTBEMQswCQYDVQQGEwJDTjENMAsGA1UECgwEQkpDQTENMAsGA1UECwwEQkpDQTEXMBUGA1UEAwwOQmVpamluZyBTTTIgQ0EwHhcNMjAwNjAyMTYwMDAwWhcNMjAwOTAzMTU1OTU5WjA+MQswCQYDVQQGDAJDTjEYMBYGCSqGSIb3DQEJAQwJMjJAcXEuY29tMRUwEwYDVQQDDAxjZXNoaXlvbmdodTIwWTATBgcqhkjOPQIBBggqgRzPVQGCLQNCAATb1Ruto4sId+W/Y+6MHbxLxJOLe/Vwl0cmXuojqueYzwYWWkm8EVvTFmy8x42VdVo5EakqbC+/s0KHrrjNcaPko4IBxjCCAcIwHwYDVR0jBBgwFoAUH+bP1I/FIiqXSimKFecWyZI0xLYwHQYDVR0OBBYEFKFy5QDNlEPJbpnOB611MrGn7AZ5MAsGA1UdDwQEAwIGwDCBogYDVR0fBIGaMIGXMGCgXqBcpFowWDELMAkGA1UEBhMCQ04xDTALBgNVBAoMBEJKQ0ExDTALBgNVBAsMBEJKQ0ExFzAVBgNVBAMMDkJlaWppbmcgU00yIENBMRIwEAYDVQQDEwljYTIxY3JsMjcwM6AxoC+GLWh0dHA6Ly8xMTEuMjA3LjE3Ny4xODk6ODAwMy9jcmwvY2EyMWNybDI3LmNybDAkBgoqgRyG7zICAQEBBBYMFFNGNTIwMTAxMTk5MDA1MjgwMDE5MCAGCGCGSAGG+EQCBBQMEjUyMDEwMTE5OTAwNTI4MDAxOTAfBgoqgRyG7zICAQEOBBEMDzk5ODAwMDEwMDA5OTIxNjAtBgoqgRyG7zICAQEXBB8MHThAMjE1MDA5U0YwNTIwMTAxMTk5MDA1MjgwMDE5MCAGCCqBHNAUBAEBBBQMEjUyMDEwMTE5OTAwNTI4MDAxOTAUBgoqgRyG7zICAQEeBAYMBDEwNTAwCgYIKoEcz1UBg3UDSAAwRQIhAPmPHejWmlpBXoFxvOWPcxdGJYOjC+6/TL+bYbNnroT2AiBXol2aTMb4medb0+es2KM3cWZMPByfma+aEii9p8AooA==
-----END CERTIFICATE-----
使用工具:SSL在线工具-证书DER转PEM-证书PEM转DER-SSLeye官网
数字证书
注:未压缩公钥 通常以前缀04开头。
签名值进行Bate64解码,之后拆分出R、S
签名验签:
附证:用户应用服务器与签名验签服务器之间的通信数据包
换一个工具,哈哈
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。