- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MarshalPKCS1PrivateKey (0.21 sec)
-
docs/debugging/inspect/main.go
privatekey, err := rsa.GenerateKey(crand.Reader, 2048) if err != nil { fmt.Printf("error generating key: %s n", err) os.Exit(1) } // dump private key to file privateKeyBytes := x509.MarshalPKCS1PrivateKey(privatekey) privateKeyBlock := &pem.Block{ Type: "RSA PRIVATE KEY", Bytes: privateKeyBytes, } privatePem, err := os.Create("support_private.pem") if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Mon Feb 17 17:09:42 UTC 2025 - 5.7K bytes - Viewed (0) -
cmd/test-utils_test.go
default: return nil } } pemBlockForKey := func(priv any) *pem.Block { switch k := priv.(type) { case *rsa.PrivateKey: return &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(k)} case *ecdsa.PrivateKey: b, err := x509.MarshalECPrivateKey(k) if err != nil { fmt.Fprintf(os.Stderr, "Unable to marshal ECDSA private key: %v", err) os.Exit(2) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 77K bytes - Viewed (0) -
api/go1.txt
pkg crypto/x509, const UnknownSignatureAlgorithm SignatureAlgorithm pkg crypto/x509, func CreateCertificate(io.Reader, *Certificate, *Certificate, interface{}, interface{}) ([]uint8, error) pkg crypto/x509, func MarshalPKCS1PrivateKey(*rsa.PrivateKey) []uint8 pkg crypto/x509, func MarshalPKIXPublicKey(interface{}) ([]uint8, error) pkg crypto/x509, func NewCertPool() *CertPool pkg crypto/x509, func ParseCRL([]uint8) (*pkix.CertificateList, error)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)