Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also not able to Enroll with NDES, failure reason: Integrity check failed, illegal size of payload #156

Open
xl-gtf opened this issue Sep 20, 2022 · 1 comment

Comments

@xl-gtf
Copy link

xl-gtf commented Sep 20, 2022

Hi there,
I am facing a similar error as #80, but when I pass it the certificates as suggested, using both -c and -e, I still get the error.
./sscep enroll -c ca.crt-0 -l cert.pem -k key.pem -r local.csr.txt -e ca.crt-1 -u http://[Server]/certsrv/mscep/mscep.dll -v -d
yields:
/sscep: finding attribute pkiStatus
./sscep: allocating 1 bytes for attribute
./sscep: pkistatus: FAILURE
./sscep: finding attribute failInfo
./sscep: allocating 1 bytes for attribute
./sscep: reason: Integrity check failed
./sscep: illegal size of payload

I have tried rearranging the 3 certificates around as parameters.
ca.crt-0 can also be used for -e parameter,
but if I replace or swap anything apart from that, error is reached before, so the certificates are arranges as best they can be.

It would seem, this is correct:
ca.crt-0 Certificate for signing
ca.crt-1 Certificate for encryption
ca.crt-2 Certficate of CA that signed the NDES-Certificates

Can you help me to a solution or more debugging information?

Regards, Chr

@Sleepw4lker
Copy link

Sleepw4lker commented Oct 21, 2022

Have a look at this: https://www.gradenegger.eu/?p=10098 (you might need to translate it).
Common failures i stumbled across are...

  • Wrong or already-used Challenge password (triggers Event 29 on the NDES server)
  • Challenge password is wrongly encoded (also triggers Event 29 on the NDES server). NDES expects the password to be encoded in PrintableString, OpenSSL defaults to UTF8 though... set string_mask = nombstr in your request config file under the [req] section)
  • key size too small (triggers Event 31 on the NDES server)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants