Giter VIP home page Giter VIP logo

gossl's Introduction

gossl

GoSSL is an SSL/TLS certificate tool written with Go and built with ❤️

Features

  • Verify a server certificate with a root CA
  • Generate RSA key
  • Generate x509 RSA root CA
  • Generate x509 RSA server certificate
  • Generate SSH key pair

Commands

help

help: Help command displays default help and existing commands

./gossl help

verify

You can verify x509 certificate with provided root CA. Both CA and certificate files need to be PEM encoded.

./gossl verify --help
./gossl verify --cafile ./testdata/ca-cert.pem --certfile ./testdata/server-cert.pem
./gossl verify --dns 127.0.0.1 --cafile ./testdata/ca-cert.pem --certfile ./testdata/server-cert.pem

key

Key command helps you to generate RSA private key with provided bit size.

./gossl key --help
./gossl key --bits 2048
./gossl key --bits 2048 -out private.key

cert

Cert command generates x509 certificate with provided private key.

./gossl cert --help

// Generate Root CA

./gossl cert \
    --key private.key \
    --out ca.pem \
    --days 365 \
    --serial 12345 \
    --isCA 

// Generate Certificate

./gossl cert \
    --key private.key \
    --out cert.pem \
    --days 365 \
    --serial 12345

ssh

SSH command helps you to generate SSH Key Pair with provided bit size.

./gossl key --help
./gossl key --bits 2048
./gossl key --bits 2048 -out ./id_rsa
// output will be written to ./id_rsa and ./id_rsa_pub files

TODO

  1. Add generate command for generating private key, root ca and x509 certificates in one command
  2. Add test for cert
  3. Add cert template format read from yaml file
  4. Add verification of a CA and http endpoint
  5. Add test for utils package
  6. Add test for help package
  7. Add ssh-copy-id feature to upload ssh key to remote server easily

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.