Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
basvandriel committed Dec 12, 2024
1 parent 6595f4e commit 18081f8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/page/creatersakey.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from PyQt6.QtWidgets import QWizardPage, QVBoxLayout, QCheckBox, QLabel, QWizard
from PyQt6.QtCore import QTimer
import PyKCS11

from app.yubikey_details import YubikeyDetails
from .worker import Worker


Expand All @@ -10,8 +12,15 @@ class CreateRSAKeysPage(QWizardPage):
totalSteps = 0
alreadycalled = None

_selected_yubikey: YubikeyDetails

def _set_yelected_yubikey(self):
slot, name, serial = self.wizard().property("selectedYubiKey")
self._selected_yubikey = YubikeyDetails(slot, name, serial)

def __init__(self, mypkcs, parent=None):
super().__init__(parent)
self._set_yelected_yubikey()
self.setTitle("Create RSA Keys")

layout = QVBoxLayout(self)
Expand Down
8 changes: 8 additions & 0 deletions app/yubikey_details.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from dataclasses import dataclass


@dataclass
class YubikeyDetails:
slot: str
serial: str
name: str
3 changes: 1 addition & 2 deletions docs/LOCALSETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ git clone --single-branch --branch uzipoc_q4_2024 [email protected]:minvws/nl-uzipo


## Requirements

This application requires the [`yubico-piv-tool`](https://developers.yubico.com/yubico-piv-tool/) installed on your computer and therefor the `libykcs11` library. The `yubico-piv-tool` needs to be available in your system path. Next to that, make sure you have the following tools:
This application requires the [`yubico-piv-tool`](https://developers.yubico.com/yubico-piv-tool/) installed on your computer and therefor the `libykcs11` library. The `yubico-piv-tool` needs to be available in your system path. Next to that, the [`ykman`](https://developers.yubico.com/yubikey-manager/Releases/) CLI is also required in your path. make sure you have the following tools:

- **`python3.13`**: Make sure the executable is also accessible from your local terminal.
- **`git`**: To update the application when needed.
Expand Down
2 changes: 2 additions & 0 deletions tests/test_yubi_reset.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# import PyKCS11
from PyKCS11 import PyKCS11Lib

0 comments on commit 18081f8

Please sign in to comment.