Libdigidocpp library offers creating, signing and verification of digitally signed documents, according to XAdES and XML-DSIG standards. Documentation http://open-eid.github.io/libdigidocpp
Install dependencies
# Ubuntu
sudo apt install cmake xxd libxml-security-c-dev xsdcxx libssl-dev zlib1g-dev
# Fedora
sudo dnf install cmake gcc-c++ openssl-devel xerces-c-devel xml-security-c-devel xsd zlib-devel vim-common
Fetch the source
git clone --recursive https://github.com/open-eid/libdigidocpp
cd libdigidocpp
Configure
cmake -B build -S .
Build
cmake --build build
Install
sudo cmake --build build --target install
Execute
/usr/local/bin/digidoc-tool
Install dependencies from
Fetch the source
git clone --recursive https://github.com/open-eid/libdigidocpp
cd libdigidocpp
Prepare dependencies (available targets: osx, ios, iossimulator, androidarm, androidarm64, androidx86_64)
sh prepare_osx_build_environment.sh osx all
Install dependencies
brew install xsd
brew unlink xerces-c
Configure, build and install (available targets: osx, ios, iossimulator, androidarm, androidarm64, androidx86_64)
./build-library.sh osx install
Execute
/Library/Frameworks/digidocpp.framework/Resources/digidoc-tool
Install dependencies and necessary tools from
Toolset:
Fetch the source
git clone --recursive https://github.com/open-eid/libdigidocpp
cd libdigidocpp
Prepare
powershell -ExecutionPolicy ByPass -File prepare_win_build_environment.ps1 -toolset 142
Configure
cmake -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake `
-DVCPKG_TARGET_TRIPLET=x64-windows-v142 `
-DVCPKG_MANIFEST_FEATURES=tests `
-DXSD_ROOT=xsd/libxsd `
-B build -S .
Optional CMake parameters:
-DSWIG_EXECUTABLE=C:/swigwin-4.1.1/swig.exe
After running the cmake build, digidoc_csharp.dll along with the C# source files will be created, more info at
examples/DigiDocCSharp/README.md.
Build
cmake --build build
Alternative to steps 4. and 5. -
powershell -ExecutionPolicy ByPass -File build.ps1 -toolset 142
The build script builds executables and installation media for all
platforms (x86 and x64 / Debug and Release with debug symbols)
Execute
build/src/digidoc-tool.exe
Official builds are provided through official distribution point id.ee. If you want support, you need to be using official builds. Contact our support via www.id.ee for assistance.
Source code is provided on “as is” terms with no warranty (see license for more information). Do not file Github issues with generic support requests.