gmssl icon indicating copy to clipboard operation
gmssl copied to clipboard

如何从pem文件中读取私钥公钥,以及将生成的密钥写入文件,我用OpenSSL生成SM2的私钥公钥,不知道如何加载进来程序,求指导。

Open huruzun opened this issue 3 years ago • 4 comments

huruzun avatar Jul 21 '21 11:07 huruzun

I met the same difficulty.

FengGuanxi avatar Nov 12 '21 06:11 FengGuanxi

me too

joyhuchao avatar Jun 10 '22 08:06 joyhuchao

求指导

monkeycc avatar Aug 29 '22 09:08 monkeycc

def file_to_hex_string(file_path): with open(file_path, "rb") as f: hex_string = f.read().hex() return hex_string

Libraggbond avatar Feb 10 '23 03:02 Libraggbond