-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Hello,
I am using version v2.2.0-7-g3e65c81 of scepclient and trying to follow the instructions in this link.
I get this error below. What could be the root cause? We have mscep server in our environment.
level=info ts=2025-08-19T20:19:31.158886897Z op=GetCACaps error=null took=144.696451ms
level=info ts=2025-08-19T20:19:31.303950004Z op=PKIOperation error=null took=145.020937ms
ts=2025-08-19T20:19:31.304385049Z level=debug msg="parsed scep pkiMessage" scep_message_type="CertRep (3)" transaction_id="NiUR7NQKITZBoNDHx29qXySYplo="
PKCSReq (19) request failed, failInfo: badMessageCheck (1)
export BINARY_NAME=scepclient
curl -o $BINARY_NAME https://download.keytos.io/Downloads/linux-scripts/scepclient-linux-amd64
chmod +x $BINARY_NAME
echo "Generating Private Key"
export PRIVATE_KEY_PATH=key.pem
openssl genrsa -traditional -out $PRIVATE_KEY_PATH 2048
./$BINARY_NAME
-server-url $EZCA_STATIC_CHALLENGE_SCEP_URL
-private-key $PRIVATE_KEY_PATH
-challenge $SCEP_STATIC_CHALLENGE
-cn $USER_CERTIFICATE_COMMON_NAME
-organization $USER_CERTIFICATE_ORGANIZATION
-ou $USER_CERTIFICATE_ORGANIZATION_UNIT
-country $USER_CERTIFICATE_COUNTRY
-debug $DEBUG
HOSTNAME=hostname
EZCA_STATIC_CHALLENGE_SCEP_URL="https://xxxxxxxxxxxxxxxxxxxxxxxxxx/certsrv/mscep/"
PRIVATE_KEY_PATH=./key.pem
SCEP_STATIC_CHALLENGE="217E35D175"
USER_CERTIFICATE_COMMON_NAME=$HOSTNAME.fqdn
USER_CERTIFICATE_ORGANIZATION="OU=Computers"
USER_CERTIFICATE_COUNTRY="USA"
USER_CERTIFICATE_ORGANIZATION_UNIT="xxx"
DEBUG="enable"
Above are the Variables I am using. Please kindly advise.