xfon

module
v0.0.0-...-cab4146 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: Apache-2.0

README

xfon

Build Status codecov Go Report Card

Tool for very simple certificate signing

Build with mage

Usage

Create RSA key

./xfon rsa new --bits 4096 --out local/ca.key

Create CA certificate

./xfon x509 new --ca true --cert-out local/ca.crt --key-in local/ca.key \
    --days 365 --common-name myCN --organization myOrg \
    --usages KeyUsageKeyEncipherment,KeyUsageDigitalSignature

Create Signed certificate

./xfon rsa new --bits 4096 --out local/server.key

./xfon x509 signed --cert-out local/server.crt --key-in local/server.key \
    --parent-cert local/ca.crt --signing-key local/ca.key \
    --days 365 --common-name serverCN --organization myOrg \
    --ip-addresses 192.168.0.30,127.0.0.1 \
    --dns-addresses localhost,myserver.local \
    --usages KeyUsageKeyEncipherment,KeyUsageDigitalSignature \
    --ext-usages ExtKeyUsageServerAuth,ExtKeyUsageClientAuth
    

Directories

Path Synopsis
cmd
pkg
rsa

Jump to

Keyboard shortcuts

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