Skip to content

Commit

Permalink
Removing extra ROOT from the openssl smime command
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Oct 19, 2023
1 parent 1fde736 commit fd72d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/CertificationAuthorityEduPkiServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function sendRequestToCa($csr, $revocationPin, $expiryDays): int
// sign the data, using cmdline because openssl_pkcs7_sign produces strange results
// -binary didn't help, nor switch -md to sha1 sha256 or sha512
$this->loggerInstance->debug(5, "Actual content to be signed is this:\n $soapCleartext\n");
$execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . ROOT . CertificationAuthorityEduPkiServer::LOCATION_RA_KEY . " -signer " . ROOT . CertificationAuthorityEduPkiServer::LOCATION_RA_CERT;
$execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . CertificationAuthorityEduPkiServer::LOCATION_RA_KEY . " -signer " . CertificationAuthorityEduPkiServer::LOCATION_RA_CERT;
$this->loggerInstance->debug(2, "Calling openssl smime with following cmdline: $execCmd\n");
$output = [];
$return = 999;
Expand Down

0 comments on commit fd72d6a

Please sign in to comment.