func convertKeyToPEM(blockType string, dataBytes *rsa.PrivateKey) []byte {
	return pem.EncodeToMemory(
		&pem.Block{
			Type:    blockType,
			Headers: nil,
			Bytes:   x509.MarshalPKCS1PrivateKey(dataBytes),
		},
	)
}
// convert private key to PEM format
convert private key to PEM format
// convert private key to PEM format
func convertKeyToPEM(blockType string, dataBytes *rsa.PrivateKey) []byte {
	return pem.EncodeToMemory(
		&pem.Block{
			Type:    blockType,
			Headers: nil,
			Bytes:   x509.MarshalPKCS1PrivateKey(dataBytes),
		},
	)
}
func convertKeyToPEM ( blockType string , dataBytes * rsa . PrivateKey ) [ ] byte { return pem . EncodeToMemory ( & pem . Block { Type : blockType , Headers : nil , Bytes : x509 . MarshalPKCS1PrivateKey ( dataBytes ) , } , ) }
convert private key to PEM format
convert private key to PEM format