utils

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 5 Imported by: 1

README

go-utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseKeyFromPEM

func ParseKeyFromPEM(pemFile string, private bool) (interface{}, error)

ParseKeyFromPEM Load public or private key from PEM file path. According to PEM Block name it will try to load a key with different types. If 'private', try to load a private key, else, load public keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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