Giter VIP home page Giter VIP logo

goca's Introduction

Выпуск сертификата

Билд всего проекта с запуском

make && make run

OpenApi спецификация доступна в /api директории и по адресу <address>/doc.

Консольные параметры go run cmd/issuer/main.go -help

Примеры

  1. Выпуск по конфигу
$ curl -H "Accept: application/x-tar" -F "days=10"  -F "[email protected]"  --output - localhost:8080/issuing/cert > /tmp/archive.tar && tar -xvf /tmp/archive.tar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13310    0 12288  100  1022  67147   5584 --:--:-- --:--:-- --:--:-- 72732
server.conf
prv.pem
pub.pem
csr.pem
cert.pem
ca-cert.pem
  1. Выпуск по csr
$ curl -H "Accept: application/zip" -F "days=10"  -F "[email protected]"  --output - localhost:8080/issuing/cert > /tmp/archive.zip && unzip /tmp/acrhive.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5071    0  3452  100  1619   306k   143k --:--:-- --:--:-- --:--:--  450k
Archive:  /tmp/archive.zip
  inflating: pub.pem                 
  inflating: csr.pem                 
  inflating: cert.pem                
  inflating: ca-cert.pem      

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.