Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MarshalPKCS1PublicKey (0.22 sec)

  1. docs/debugging/inspect/main.go

    	}
    	err = pem.Encode(privatePem, privateKeyBlock)
    	if err != nil {
    		fmt.Printf("error when encode private pem: %s n", err)
    		os.Exit(1)
    	}
    
    	// dump public key to file
    	publicKeyBytes := x509.MarshalPKCS1PublicKey(&privatekey.PublicKey)
    	if err != nil {
    		fmt.Printf("error when dumping publickey: %s n", err)
    		os.Exit(1)
    	}
    	publicKeyBlock := &pem.Block{
    		Type:  "PUBLIC KEY",
    		Bytes: publicKeyBytes,
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 17 17:09:42 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top