Extract certificate with private key from cryptopro 4 container
  • C 88.2%
  • Shell 11.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2023-11-29 17:45:39 +03:00
build.sh fix paths 2019-04-02 18:59:24 +03:00
get-cpcert.c fix asn1 parser: null type is not stream 2023-01-05 13:04:52 +03:00
LICENSE Initial commit 2019-03-26 22:41:08 +03:00
openssl-config.txt Create openssl-config.txt 2019-03-26 22:54:58 +03:00
prepare.sh Update prepare.sh 2023-11-29 17:45:39 +03:00
README.md Update README.md 2021-11-20 14:14:45 +03:00
test-cert.sh testing signing 2019-03-26 22:57:32 +03:00

get-cpcert

Console utility to convert cryptopro4 and cryptopro5 certificate (gost-2001, gost-2012) into pem file for openssl 1.1.1

build

Tested on ubuntu 14.04 LTS 64bit

prepare.sh -- download,build & install openssl 1.1.1 & gost-engine + cmake
  it takes about 530Mb disk space and 20min to build on my notebook
  (365Mb cmake, 127Mb openssl, 6.8Mb engine)

**Modifies openssl on the system library path.**

build.sh -- build get-cpcert
  it outputs get-cpcert and libgost.so

usage

get-cpcert folder.000 password > certificate.pem

prebuild binaries

get-cpcert-bin.tar.gz -- contains prebuild binaries for ubuntu 14.04 64bit and 3 samples for testing