Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta@microsoft committed Sep 7, 2024
1 parent 694f2c6 commit 9375a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/common/utils/cryptutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def decrypt_p7m(self, p7m_file, trans_prv_file, trans_cert_file, pem_file):
try:
shellutil.run_pipe([
[self.openssl_cmd, "cms", "-decrypt", "-in", p7m_file, "-inkey", trans_prv_file, "-recip", trans_cert_file],
[self.openssl_cmd, "pkcs12", "-nodes", "-password", "pass:", "-out", pem_file]])
[self.openssl_cmd, "pkcs12", "-nodes", "-password", "pass:", "-nomacver", "-out", pem_file]])
except shellutil.CommandError as command_error:
logger.error("Failed to decrypt {0} (return code: {1})\n[stdout]\n{2}\n[stderr]\n{3}",
p7m_file, command_error.returncode, command_error.stdout, command_error.stderr)
Expand Down

0 comments on commit 9375a66

Please sign in to comment.