test

package
v0.0.0-...-e98f407 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

= Generating the pair of private/public RSA keys

```
$ openssl genrsa -out test/private_key2.pem 2028
Generating RSA private key, 2028 bit long modulus
.............................+++
..............................+++
e is 65537 (0x10001)
$ openssl rsa -in test/private_key2.pem -pubout -outform PEM -out test/public_key2.pem
writing RSA key
```

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateKey

func PrivateKey(filename string) (*rsa.PrivateKey, error)

PrivateKey returns the PrivateKey from the given filename

func PublicKey

func PublicKey(filename string) (*rsa.PublicKey, error)

PublicKey returns the PublicKey from the given filename

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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