linux:security:keyring:keepassxc-keyring
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:security:keyring:keepassxc-keyring [2020/05/25 16:52] – [Suggestions] chuck | linux:security:keyring:keepassxc-keyring [2021/11/09 01:10] (current) – chuck | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======KeepassXC as the System Keyring====== | ======KeepassXC as the System Keyring====== | ||
| - | It is possible to use KeePassXC as the system keyring. | ||
| - | Here's how I set things up on my system | + | ---- |
| + | |||
| + | =====Description===== | ||
| + | |||
| + | It is possible to use [[https:// | ||
| + | |||
| + | <WRAP info smaller> | ||
| + | The following information requires at least KeePassXC 2.5.0 installed. | ||
| + | </ | ||
| ---- | ---- | ||
| Line 19: | Line 26: | ||
| ====Disable gnome-keyring==== | ====Disable gnome-keyring==== | ||
| - | https:// | ||
| Create 3 .desktop files and place them in '' | Create 3 .desktop files and place them in '' | ||
| - | <file sh gnome-keyring-pkcs11.desktop> | + | * **gnome-keyring-pkcs11.desktop**:<code ini> |
| [Desktop Entry] | [Desktop Entry] | ||
| Hidden=true | Hidden=true | ||
| - | </file> | + | </code> |
| - | <file sh gnome-keyring-secrets.desktop> | + | * **gnome-keyring-secrets.desktop**:<code ini> |
| [Desktop Entry] | [Desktop Entry] | ||
| Hidden=true | Hidden=true | ||
| - | </file> | + | </code> |
| - | <file sh gnome-keyring-ssh.desktop> | + | * **gnome-keyring-ssh.desktop**:<code ini> |
| [Desktop Entry] | [Desktop Entry] | ||
| Hidden=true | Hidden=true | ||
| - | </file> | + | </code> |
| + | * https:// | ||
| ---- | ---- | ||
| - | |||
| - | |||
| - | |||
| - | |||
| =====Accessing Entries===== | =====Accessing Entries===== | ||
| - | ====secret-tool==== | + | * Using [[linux: |
| - | See [[linux: | + | * Using [[linux: |
| - | + | ||
| - | '' | + | |
| - | + | ||
| - | ===Store=== | + | |
| - | < | + | |
| - | secret-tool store --label=' | + | |
| - | </ | + | |
| - | + | ||
| - | ===Get=== | + | |
| - | < | + | |
| - | secret-tool lookup {attribute} {value} {attribute2} {value2} [...] | + | |
| - | </ | + | |
| - | + | ||
| - | ---- | + | |
| - | ====keyring==== | + | |
| - | See [[linux: | + | |
| - | ===Python=== | + | |
| - | < | + | |
| - | import keyring | + | |
| - | + | ||
| - | keyring.get_credential(' | + | |
| - | keyring.get_password(' | + | |
| - | </ | + | |
| - | + | ||
| - | ===cli=== | + | |
| - | < | + | |
| - | keyring set SERVICE USERNAME | + | |
| - | keyring get SERVICE USERNAME | + | |
| - | keyring del SERVICE USERNAME | + | |
| - | </ | + | |
| ---- | ---- | ||
| Line 82: | Line 55: | ||
| You can create your own key:value pairs for easier access and searching of specific entries. | You can create your own key:value pairs for easier access and searching of specific entries. | ||
| - | ---- | + | Here's a couple examples: |
| ====Nextcloud Desktop==== | ====Nextcloud Desktop==== | ||
| ==General== | ==General== | ||
| Line 110: | Line 84: | ||
| * The password field should contain the password for the ssh key. | * The password field should contain the password for the ssh key. | ||
| < | < | ||
| - | Title: username@hostname// | + | Title: username@hostname// |
| Username: username | Username: username | ||
| Password: ******** | Password: ******** | ||
| Line 118: | Line 92: | ||
| < | < | ||
| authtype: publickey | authtype: publickey | ||
| - | object: /path/to/ssh/key | + | object: /home/username/.ssh/key |
| protocol: sftp | protocol: sftp | ||
| server: hostname | server: hostname | ||
| Line 128: | Line 102: | ||
| ---- | ---- | ||
| ====keyring entries==== | ====keyring entries==== | ||
| - | Entries created with keychain | + | Entries created with [[linux: |
| ==General== | ==General== | ||
| < | < | ||
| Line 145: | Line 119: | ||
| =====Suggestions===== | =====Suggestions===== | ||
| - | Given the above information, | + | * I would recommend creating |
| - | * service: SERVICE | + | secret-tool store --label=' |
| - | * username: USERNAME | + | |
| - | + | ||
| - | This way, it will be available to python3-keyring as well. | + | |
| - | + | ||
| - | ==Example== | + | |
| - | < | + | |
| - | secret-tool store --label=' | + | |
| - | Password: | + | |
| </ | </ | ||
| + | * This way, it will be available to [[linux: | ||
| ---- | ---- | ||
linux/security/keyring/keepassxc-keyring.1590425565.txt.gz · Last modified: by chuck
