# Virtual Smart Card

## Usage

_NOTE:_ You may need to restart pcscd before running vicc

### Using Bridge Controller

### Manual Tool Launch

```bash
sudo systemctl restart pcscd
```

```bash
vicc -t meesign
```

- Configuration can be done using Bridge Controller, CLI arguments (`vicc --help`), or ENV
  variables)

## Initialize the card

```bash
cd ~/InfinitEID/src/InfinitEID-card-management
python3 cli
```

- Press 3x "enter" to confirm defaults
- After the initialization (about 3s), press "q" to quit the tool

## Create an authentication signature

```bash
web-eid -c authenticate '{"challengeNonce": "12345678901234567890123456789012345678901234", "origin": "https://ria.ee"}'
```

## Build and Install

_already installed in Bridge Box_

```bash
autoreconf --verbose --install
./configure --sysconfdir=/etc
make
make install
```
