File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,41 +68,41 @@ You can skip this if your master key is not password protected.
68
68
To remove the password from the subkey, create an ephemeral gpg home directory:
69
69
70
70
``` bash
71
- mkdir /tmp/ gpg
71
+ install -d -m 700 gpg-tmp
72
72
```
73
73
74
74
Ensure that it works with gpg:
75
75
76
76
``` bash
77
- gpg --homedir /tmp/ gpg --list-keys
77
+ gpg --homedir gpg-tmp --list-keys
78
78
```
79
79
80
80
You can ignore the warning about unsafe directory permissions.
81
81
82
82
Import your subkey:
83
83
84
84
``` bash
85
- gpg --homedir /tmp/ gpg --import private.key
85
+ gpg --homedir gpg-tmp --import private.key
86
86
```
87
87
88
88
Enter edit mode:
89
89
90
90
``` bash
91
- gpg --homedir /tmp/ gpg --edit-key < SubKey ID>
91
+ gpg --homedir gpg-tmp --edit-key < SubKey ID>
92
92
```
93
93
94
94
Type ` passwd ` , entering your current password and then set the password to "" to remove it.
95
95
96
96
Type ` save ` to exit edit mode and re-export your subkey:
97
97
98
98
``` bash
99
- gpg --homedir /tmp/ gpg --output private.key --armor --export-secret-subkeys " <SubKey ID>!"
99
+ gpg --homedir gpg-tmp --output private.key --armor --export-secret-subkeys " <SubKey ID>!"
100
100
```
101
101
102
102
Finally, remove the ephemeral directory:
103
103
104
104
``` bash
105
- rm --rf /tmp/ gpg
105
+ rm --rf gpg-tmp
106
106
```
107
107
108
108
You will now need to export your master public key with the new subkey public key to the file ` public.key ` :
You can’t perform that action at this time.
0 commit comments