Removed direct substitution in encrypt and decrypt scripts.
This commit is contained in:
parent
94105c2c49
commit
7ab23985e1
2 changed files with 6 additions and 5 deletions
|
@ -233,8 +233,8 @@ fi
|
|||
jwe="$(jose fmt -j "$jwe" -g protected -g clevis -g tpm2 -q "$jwk_pub" -s jwk_pub -UUUUo-)"
|
||||
jwe="$(jose fmt -j "$jwe" -g protected -g clevis -g tpm2 -q "$jwk_priv" -s jwk_priv -UUUUo-)"
|
||||
|
||||
# Clean up the temporary directory at the end of the script
|
||||
[ -d "${tmp}" ] && rm -rf "${tmp}"
|
||||
|
||||
# Output the final JWE
|
||||
exec jose jwe enc -i- -k- -I- -c < <(echo -n "$jwe$jwk"; /bin/cat)
|
||||
(echo "$jwe$jwk"; /bin/cat) | jose jwe enc -i- -k- -I- -c
|
||||
|
||||
# Exit with the status of the last command
|
||||
exit $?
|
Loading…
Add table
Add a link
Reference in a new issue