We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
priv, err := sm2.GenerateKey(nil) // 生成密钥对 if err != nil { fmt.Println(err) return } privPem, err := x509.WritePrivateKeyToPem(priv, []byte("1234")) // 生成密钥文件 if err != nil { fmt.Println(err) return } file, err := os.OpenFile("gmserver.pem", os.O_RDWR|os.O_CREATE, 0644) if err != nil { fmt.Println(err) return } _, err = file.Write(privPem) if err != nil { fmt.Println(err) } file.Close()
保存进去的私钥,为什么解析的时候就报错。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
保存进去的私钥,为什么解析的时候就报错。
The text was updated successfully, but these errors were encountered: