Skip to content

Commit c7f9f60

Browse files
sec pkeyutl
1 parent 92616c3 commit c7f9f60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
[user]
55
name = Bryan MacFarlane
66
email = bryanmacf@gmail.com
7+

rc/functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function dot_set_secret() {
3636

3737
dot_ensure_key
3838
local secpath="${DOT_PRIV_PATH}/secrets/${1}.dat"
39-
echo "${2}" | openssl rsautl -inkey "${DOT_KEY_PATH}" -encrypt > "${secpath}"
39+
echo "${2}" | openssl pkeyutl -inkey "${DOT_KEY_PATH}" -encrypt > "${secpath}"
4040
echo "created in ${secpath}"
4141
}
4242

@@ -52,7 +52,7 @@ function dot_get_secret() {
5252
return
5353
fi
5454

55-
openssl rsautl -inkey "${DOT_KEY_PATH}" -decrypt < "${DOT_PRIV_PATH}/secrets/${1}.dat"
55+
openssl pkeyutl -inkey "${DOT_KEY_PATH}" -decrypt < "${DOT_PRIV_PATH}/secrets/${1}.dat"
5656
}
5757

5858
function dot_list_secrets() {

0 commit comments

Comments
 (0)