astroauth

command module
v0.0.0-...-841f614 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

astroauth

Setting .env

In a .env at the root of the directory, set the following variables:

  1. PRIV_KEY_LOC: file path to the private key
  2. PUBLIC_KEY_LOC: file path to the public key
  3. AUTH_KEY_TYPE: type of the key

The following authentication keys are supported:

  • RSA
  • ES256
  • ES512

Generating keys

The following shows basic/default settings to make these keys, preferably add passphrases and more bytes for security.

RSA
openssl genrsa -out priv_key.pem 2048

openssl rsa -in priv_key.pem -outform PEM -pubout -out pub_key.pem
ECDSA: ES256
openssl ecparam -name prime256v1 -genkey -noout -out priv_ecdsa.pem

openssl pkey -in priv_ecdsa.pem -pubout > pub_ecdsa.pem
ECDSA: ES512
openssl ecparam -name secp521r1 -genkey -noout -out priv_ecdsa.pem

openssl ec -in priv_ecdsa.pem -pubout -out pub_ecdsa.pem

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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