User Tools

Site Tools


linux:security:keyring:keepassxc-keyring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:security:keyring:keepassxc-keyring [2021/11/09 00:59] chucklinux:security:keyring:keepassxc-keyring [2021/11/09 01:10] (current) chuck
Line 2: Line 2:
  
 ---- ----
 +
 +=====Description=====
  
 It is possible to use [[https://keepassxc.org/|KeePassXC]] as the system keyring. It is possible to use [[https://keepassxc.org/|KeePassXC]] as the system keyring.
- 
-Here's how I set things up on my system using i3wm with no display manager. 
- 
----- 
  
 <WRAP info smaller> <WRAP info smaller>
 The following information requires at least KeePassXC 2.5.0 installed. The following information requires at least KeePassXC 2.5.0 installed.
 </WRAP> </WRAP>
 +
 +----
  
 =====Configure===== =====Configure=====
Line 45: Line 45:
  
 =====Accessing Entries===== =====Accessing Entries=====
-====secret-tool==== +  * Using [[linux:security:keyring:secret-tool|secret-tool]] 
-See [[linux:security:keyring:secret-tool|secret-tool]] for more info. +  * Using [[linux:security:keyring:keyring|keyring]]
- +
-''%%{attribute} {value}%%'' references key:value pairs stored under the Advanced section of an Entry. +
- +
- +
-  * Create entry:<code bash> +
-secret-tool store --label='My Label' {attribute} {value} {attribute2} {value2} [...] +
-</code> +
-  * Retrieve entry<code> +
-secret-tool lookup {attribute} {value} {attribute2} {value2} [...] +
-</code> +
- +
----- +
- +
-====keyring==== +
-See [[linux:security:keyring:keyring|keyring]] for more info. +
-===Python=== +
-<code> +
-import keyring +
- +
-keyring.get_credential('SERVICE', 'USERNAME'+
-keyring.get_password('SERVICE', 'USERNAME'+
-</code> +
- +
-===cli=== +
-<code> +
-keyring set SERVICE USERNAME +
-keyring get SERVICE USERNAME +
-keyring del SERVICE USERNAME +
-</code>+
  
 ---- ----
Line 86: Line 57:
 Here's a couple examples: Here's a couple examples:
  
----- 
 ====Nextcloud Desktop==== ====Nextcloud Desktop====
 ==General== ==General==
Line 132: Line 102:
 ---- ----
 ====keyring entries==== ====keyring entries====
-Entries created with keychain have the following attributes+Entries created with [[linux:security:keyring:keyring|keyring]] have the following attributes
 ==General== ==General==
 <code> <code>
Line 149: Line 119:
  
 =====Suggestions===== =====Suggestions=====
-Given the above information, when creating an entry for use by the keyring I would recommend creating the following attributes every time for each entry: +  * I would recommend creating (at minimum) the following attributes every time for each entry:<code bash
-  * service: SERVICE +secret-tool store --label='My Label' service <service> username <username>
-  * username: USERNAME +
- +
-This way, it will be available to python3-keyring as well. +
- +
-==Example== +
-<code> +
-secret-tool store --label='My Label' service SERVICE username USERNAME +
-Password:+
 </code> </code>
 +  * This way, it will be available to [[linux:security:keyring:keyring|python3-keyring]] as well.
  
 ---- ----
linux/security/keyring/keepassxc-keyring.1636419598.txt.gz · Last modified: by chuck