Debian Codegraph @

README.md

raw symbols SCIP
1 relic is a multi-tool and server for package signing and working with hardware security modules (HSMs).
2
3 # Package types
4 * RPM - RedHat packages
5 * DEB - Debian packages
6 * JAR - Java archives
7 * EXE (PE/COFF) - Windows executable
8 * MSI - Windows installer
9 * appx, appxbundle - Windows universal application
10 * CAB - Windows cabinet file
11 * CAT - Windows security catalog
12 * XAP - Silverlight and legacy Windows Phone applications
13 * PS1, PS1XML, MOF, etc. - Microsoft Powershell scripts and modules
14 * manifest, application - Microsoft ClickOnce manifest
15 * VSIX - Visual Studio extension
16 * Mach-O - macOS/iOS signed executables
17 * DMG, PKG - macOS disk images / installer packages
18 * APK - Android package
19 * PGP - inline, detached or cleartext signature of data
20
21 # Token types
22 relic can work with several types of token:
23
24 * pkcs11 - Industry standard PKCS#11 HSM interface using shared object files
25 * Cloud services - AWS, Azure and Google Cloud managed keys
26 * scdaemon - The GnuPG scdaemon service can enable access to OpenPGP cards (such as Yubikey NEO)
27 * file - Private keys stored in a password-protected file
28
29 # Features
30 Relic is primarily meant to operate as a signing server, allowing clients to authenticate with a TLS certificate and sign packages remotely. It can also be used as a standalone signing tool.
31
32 Other features include:
33
34 * Generating and importing keys in the token
35 * Importing certificate chains from a PKCS#12 file
36 * Creating X509 certificate signing requests (CSR) and self-signed certificates
37 * Limited X509 CA support -- signing CSRs and cross-signing certificates
38 * Creating simple PGP public keys
39 * RSA and ECDSA supported for all signature types
40 * Verify signatures, certificate chains and timestamps on all supported package types
41 * Sending audit logs to an AMQP broker, with an optional sealing signature
42 * Save token PINs in the system keyring
43
44 # Platforms
45 Linux, Windows and MacOS are supported. Other platforms probably work as well.
46
47 relic is tested using libsofthsm2 and Gemalto SafeNet Network HSM (Luna SA). Every vendor PKCS#11 implementation has quirks, so if relic doesn't work with your hardware please submit a pull request.
48
49 # Installation
50 Pre-built client binaries are available from the Github releases page. Alternately, relic can be built from source:
51
52 ```go install github.com/sassoftware/relic/v7@latest```
53
54 The following build tags are also available:
55
56 * clientonly - build a lightweight binary without standalone signing features
57
58 See [doc/relic.yml](./doc/relic.yml) for an example configuration.
59
60 # Additional documentation
61
62 * [Signing Android packages](./doc/android.md)
63 * [Signing MacOS binaries](./doc/macos.md)
64 * [Using Azure Key Vault](./doc/azure.md)
65 * [Using a PGP card, YubiKey etc.](./doc/pgpcard.md)
66
67 # Related projects
68 * SoftHSMv2 - file-based PKCS#11 implementation for testing https://github.com/opendnssec/SoftHSMv2
69 * uts-server - timestamping server for testing https://github.com/kakwa/uts-server
70 * osslsigncode - Signs EXEs, MSIs, and CABs using openssl https://sourceforge.net/projects/osslsigncode/
71 * fb-util-for-appx - Builds signed APPX archives https://github.com/facebook/fb-util-for-appx
72 * OpenVsixSignTool - Sign VSIX extensions using an Azure key vault https://github.com/vcsjones/OpenVsixSignTool
73
74 # Reference specifications
75 * PE/COFF specification - https://www.microsoft.com/en-us/download/details.aspx?id=19509
76 * Authenticode PE specification - http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/Authenticode_PE.docx
77 * Microsoft ClickOnce manifest structure - https://msdn.microsoft.com/en-us/library/dd947276(v=office.12).aspx
78 * Microsoft Compound File format (for MSI) - https://msdn.microsoft.com/en-us/library/dd942138.aspx
79 * Alternate reference for compound document format from OpenOffice - https://www.openoffice.org/sc/compdocfileformat.pdf