Golang Kalkancrypt Wrapper - simple digital signature auth service

Golang Kalkancrypt Wrapper

WIP

Star on GitHub — it motivates me a lot!

Overview

Golang Kalkancrypt Wrapper - это простой веб-сервис для аутентификации посредством взаимодейсвия с
с библиотеками kalkancrypt, используя ЭЦП.

Kalkancrypt

Kalkancrypt - это набор библиотек для шифрования, дешифрования данных. Одна из библиотек калкан это libkalkancryptwr-64 файл с доступными методами для подписания файлов, \ текста используя ЭЦП. Подробнее про PKI можно почитать здесь.

Features

  • Подписания текста, получения ответа в виде xml.
  • Проверка XML подписи.

Usage

Для запуска программы, необходимо:

  • Скопировать файлы kalkancrypt.
    bash scripts/copy_libs.sh
    hint для получения SDK нужно обратиться в pki.gov.kz
  • Добавить в доверенные сертификаты из certs, которые находятся в SDK pki.gov.kz для получения. hint bash scripts/install_certs.sh
  • добавить переменную окружения LD_LIBRARY_PATH для доступа программе к SDK.
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/kalkancrypt/:/opt/kalkancrypt/lib/engines
  • заполнить файл config.yml.example и переименовать. mv config.yml.example config.yml
  • запустить go run cmd/cli/main.go

License

The MIT License (MIT) 2021 - Abylaikhan Zulbukharov. Please have a look at the LICENSE.md for more details.

Owner
Abylaikhan Zulbukharov
teamalem alem.school        42, Unit Factory           Method Pro Kazakhstan Astana
Abylaikhan Zulbukharov
Comments
  • Repository not found

    Repository not found

    Здравствуйте. Спасибо за Вашу работу. go get github.com/doodocs/doodocs/pkg/gokalkan go: module github.com/doodocs/doodocs/pkg/gokalkan: git ls-remote -q origin in /home/xxx/go/pkg/mod/cache/vcs/4ac6913556d9b56dd76dc4bd42a8b622278572643852fa361f516f5ea38c76da: exit status 128: remote: Repository not found. fatal: repository 'https://github.com/doodocs/doodocs/' not found

  • TSP, Detached

    TSP, Detached

    • Добавлено подписание с меткой TSP в SignCMSB64
    • Добавлено подписание SignCMS64 и получение detached signature
    • Исправлено SignXML
    • Добавлена верификация detached signature
  • Доработка либы

    Доработка либы

    • нативные методы вынесены отдельно в KCClient.
    • добавлены новые нативные методы в KCClient по работке с сертификатами и.т.п.
    • Client теперь обертка над нативными методами с возможностью настройки прокси, автозагрзуки и обновления CRL кэша, загрузки CA сертификатов, установкой адресов OCSP и TSP.
    • Добавлен типы для KC: типы ошибок, флаги, и.т.п.
    • Добавлен линтер.
    • Удалены лишние зависимости из go.mod.
  • feat: sign base64 data, add mutex to lock

    feat: sign base64 data, add mutex to lock

    • Добавлена реализация метода SignData, которая позволяет подписать строку в формате base64.
    • Добавлена очистка буфера при вызове метода SignData.
    • Добавлены локи для работы с большим количеством горутин.
  • GetCertFromCMSB64

    GetCertFromCMSB64

    Дорый день, в новой версии gokalkan пропал метод GetCertFromCMSB64. Мне теперь необходимо инициализировать внутренний ckalkan самому (вроде ничего сложного смотря на wrapper.go) и вызывать напрямую? https://github.com/gokalkan/gokalkan/blob/master/ckalkan/get_cert_from_cms.go#L17

    На сколько это рекомендованный способ? Спасибо!

vault-plugin-auth-usertotp is an auth method plugin for HashiCorp Vault.

vault-plugin-auth-usertotp is an auth method plugin for HashiCorp Vault. Create user accounts, add TOTP tokens (user supplied pin + totp), and have peace of mind using 2FA.

Jul 30, 2021
Gets Firebase auth tokens (for development purposes only)Gets Firebase auth tokens

Firebase Token Gets Firebase auth tokens (for development purposes only) Getting started Create Firebase project Setup Firebase authentication Setup G

Nov 17, 2021
stark key authentication library, signature generator for dydx exchange

stark key authentication library, signature generator for dydx exchange for the following operations: Place an order Withdraw funds link : https://doc

Nov 10, 2022
Nsq http auth service for golang

nsq-auth nsq http auth service ./nsq-auth -h Usage: 2021/12/25 17:10:56 Usage:

Nov 21, 2022
Durudex Auth Service

⚡️ Durudex Auth Service Durudex Auth Service ?? Prerequisites Go 1.17 migrate grpc ⚙️ Build & Run Create an .env file in the root directory and add th

Dec 13, 2022
Figma Auth service for Haiku Animator

Figma Auth service for Haiku Animator In order to use Haiku Animator's Figma integration, a service must be running to perform OAuth2 token exchange.

Dec 4, 2022
Auth: a simple signup api for golang

auth This is a simple signup api You can access the db.go file and change the database credentials to your local postgres credentials. To run it prope

Oct 4, 2022
Validate Django auth session in Golang

GoDjangoSession Valid for django 3.0.5 Usage: package main import ( "encoding/base64" "fmt" "session/auth" "github.com/Kuzyashin/GoDjangoSession"

Aug 23, 2022
Golang Mongodb Jwt Auth Example Using Echo
Golang Mongodb Jwt Auth Example Using Echo

Golang Mongodb Jwt Auth Example Using Echo Golang Mongodb Rest Api Example Using Echo Prerequisites Golang 1.16.x Docker 19.03+ Docker Compose 1.25+ I

Nov 30, 2022
JWT Auth in Golang

Credits This package used github.com/dgrijalva/jwt-go underhood and it heavily based on this post: http://www.inanzzz.com/index.php/post/kdl9/creating

Dec 12, 2021
The boss of http auth.
The boss of http auth.

Authboss Authboss is a modular authentication system for the web. It has several modules that represent authentication and authorization features that

Jan 6, 2023
Provides AWS STS credentials based on Google Apps SAML SSO auth with interactive GUI support
Provides AWS STS credentials based on Google Apps SAML SSO auth with interactive GUI support

What's this This command-line tool allows you to acquire AWS temporary (STS) credentials using Google Apps as a federated (Single Sign-On, or SSO) pro

Sep 29, 2022
Run multiple auth functions by relation

Relation Run multiple auth functions by relation. Signatures func New(relation string, conditions ...func(c *fiber.Ctx) bool) fiber.Handler Import imp

Oct 31, 2021
Auth Middleware for session & white-listed routing

Auth Middleware for session & white-listed routing

Nov 4, 2021
Auth Go microservice for managing authentication sessions

cryptomath-go-auth Auth Go microservice for managing authentication sessions. Install dependencies $ make deps Build $ make vendor $ make build Databa

Mar 4, 2022
HTTP-server-with-auth# HTTP Server With Authentication

HTTP-server-with-auth# HTTP Server With Authentication Introduction You are to use gin framework package and concurrency in golang and jwt-go to imple

Nov 9, 2022
K8s controller to manage the aws-auth configmap

aws-auth-manager A kuberneres controller to manage the aws-auth configmap in EKS using a new AWSAuthItem CRD. The aws-auth configmap is used to give R

Jul 9, 2022
Auth microservice for PRPO subject at UNI LJ

prpo-auth microservice This repository contains a source code for user management microservice used in a demo project developed under PRPO subject at

Jan 7, 2022
Go Trakt Device Auth Library
 Go Trakt Device Auth Library

A Go library to allow an end user to authorize a third-party Trakt application access to their account using the device method.

Oct 10, 2022