Skip to content

gennewext: System.Security.Cryptography.CryptographicException: The parameter is incorrect. #28

@mohagrabx

Description

@mohagrabx

Hello everybody

When I run ScepClient.exe gennewext with my parameters so something like:

ScepClient.exe gennewext http://scepman.server/static SeCrEtPaSSwOrD dnslist.txt keyUsages.txt "Great Server" greatserver.pfx greatserver.cer

i get the following error which I cannot tell from where it is coming:

Unhandled Exception: System.Security.Cryptography.CryptographicException: The parameter is incorrect. at System.Security.Cryptography.Pkcs.EnvelopedCms.DecryptContent(RecipientInfoCollection recipientInfos, X509Certificate2Collection extraStore) at System.Security.Cryptography.Pkcs.EnvelopedCms.Decrypt(X509Certificate2Collection extraStore) at ScepClient.ScepClient.<>c__DisplayClass27_0.<ParseScepResponse>b__4() at ScepClient.ScepClient.ExecuteCryptoMethodWithRetries(Action operation2Execute) at ScepClient.ScepClient.ParseScepResponse(X509Certificate2Collection caChain, X509Certificate2 ownKey, Byte[] data) at ScepClient.ScepClient.SubmitPkcs10ToScep(String scepURL, Byte[] pkcs10, X509Certificate2 signerCert, Boolean isRenewal) at ScepClient.ScepClient.GenerateNew(String scepURL, String pfxOutputPath, String certOutputPath, String pkcs10OutputPath, String challengePassword, String cN, IEnumerable1 additionalDNSEntries, IEnumerable1 keyPurposes) at ScepClient.ScepClient.Main(String[] args)

Does anybody have an idea what the issue might be because the scepman server seems to validate request and generate the certificate but it somehow cannot be decrypted or something similar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions