An open API service indexing awesome lists of open source software.

https://github.com/domenkozar/proxsign-nix

Easy way to use proxsign on Linux
https://github.com/domenkozar/proxsign-nix

Last synced: 3 months ago
JSON representation

Easy way to use proxsign on Linux

Awesome Lists containing this project

README

          

# Proxsign (for Linux using Nix)

[![Build Status](https://travis-ci.org/domenkozar/proxsign-nix.svg?branch=master)](https://travis-ci.org/domenkozar/proxsign-nix)

This repository contains reproducible installation for proxsign signing component
required for some Slovenian national infrastructure.

## Installation

First you'll need to install Nix via terminal (works on any Linux distribution):

$ curl -L https://nixos.org/nix/install | sh
$ source ~/.nix-profile/etc/profile.d/nix.sh

Then install proxsign:

$ nix-env -i -f https://github.com/domenkozar/proxsign-nix/tarball/master

### Installing on NixOS

If you are using nixos you can also add package to your nixos configuration.
To install pacakge in you `system` profile you can add this in
your `configuration.nix` file and rebuild your system:

```nix
environment.systemPackages = [
# ProxSign
(import (builtins.fetchTarball {
url = "https://github.com/domenkozar/proxsign-nix/archive/cc26bee496facdb61c2cbb2bcfef55e167d4a85b.tar.gz";
sha256 = "0smhpz7hw382mlin79v681nws4pna5bdg0w8cjb4iq23frnb5dw6";
}))
];
```

## Usage

### 1. Run the application in terminal

$ proxsign

You should see GUI application display a list of your certificates (sigenca, etc).

### 2. Whitelist self-signed certificate in your browser

Chromium:

- Open https://localhost:14972/
- You should see "Your connection is not private"
- Click "Advanced"
- Click "Proceed to localhost (unsafe)" (yes, that's "right")
- You will get an `404` error, which is fine

Firefox:
- Open https://localhost:14972/
- Add an exception for certificate
- You will get an `404` error, which is fine

### 3. Verify that everything works

- Open http://www.si-ca.si/podpisna_komponenta/g2/Testiranje_podpisovanja_IEFF_adv_g2.php
- Click "Podpisi"
- Click "Vredu"
- Click "Preveri podpis"

## Uninstall Nix package manager (optional)

$ sudo rm -rf /nix
$ sudo rm -rf ~/.nix-*

# References

- http://www.si-ca.si/podpisna_komponenta/g2/navodilo-linux_2_1_2_58_1.php