File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ function set_cryptic_privileged() {
144
144
readarray -d' ;' -t ADHOC_PAIR <<< " ${!LONG_ADHOC_NAME}"
145
145
146
146
# Take the key, decrypt it with our RSA private key
147
- base64dec <<< " ${ADHOC_PAIR[0]}" | openssl rsautl -decrypt -inkey " ${AGENT_PRIVATE_KEY_PATH} " > " ${TEMP_KEYFILE} "
147
+ base64dec <<< " ${ADHOC_PAIR[0]}" | openssl pkeyutl -decrypt -inkey " ${AGENT_PRIVATE_KEY_PATH} " > " ${TEMP_KEYFILE} "
148
148
149
149
# Make sure the AES key is the right length
150
150
if [[ $( wc -c < " ${TEMP_KEYFILE} " ) != " 128" ]]; then
Original file line number Diff line number Diff line change @@ -128,11 +128,11 @@ function randbase64() {
128
128
129
129
# Encrypt something using RSA with the RSA public key as the first argument
130
130
function encrypt_rsa() {
131
- openssl rsautl -encrypt -pubin -inkey " ${1} "
131
+ openssl pkeyutl -encrypt -pubin -inkey " ${1} "
132
132
}
133
133
# Decrypt something using RSA with the RSA private key as the first argument
134
134
function decrypt_rsa() {
135
- openssl rsautl -decrypt -inkey " ${1} "
135
+ openssl pkeyutl -decrypt -inkey " ${1} "
136
136
}
137
137
138
138
# Sign something using RSA with the RSA key as the first argument
You can’t perform that action at this time.
0 commit comments