transform

package
v0.0.0-...-5fa9814 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package transform provides decoding utilities for certificate formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePEMRsaKey

func DecodePEMRsaKey(keyPEM []byte) (*rsa.PublicKey, error)

DecodePEMRsaKey returns the given PEM-encoded bytes as an rsa.PublicKey or an error.

func PemToCertificate

func PemToCertificate(pemBytes []byte) (*x509.Certificate, error)

PemToCertificate returns a parsed "CERTIFICATE" PEM-encoded x509 certificate or an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL