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

Cancelling signing results in a hard crash #7

Open
vcsjones opened this issue Apr 28, 2017 · 0 comments
Open

Cancelling signing results in a hard crash #7

vcsjones opened this issue Apr 28, 2017 · 0 comments
Labels

Comments

@vcsjones
Copy link
Owner

vcsjones commented Apr 28, 2017

Performing a sign operation that requires user input, such as a smart card pin, then cancelling it, results in a hard crash.

Unhandled Exception: System.Security.Cryptography.CryptographicException: Access denied.

at System.Security.Cryptography.NCryptNative.SignHash[T](SafeNCryptKeyHandle key, Byte[] hash, T& paddingInfo, AsymmetricPaddingMode paddingMode, NCryptHashSigner`1 signer)
at System.Security.Cryptography.NCryptNative.SignHashPkcs1(SafeNCryptKeyHandle key, Byte[] hash, String hashAlgorithm)
at System.Security.Cryptography.RSACng.SignHash(Byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
at OpenVsixSignTool.Core.RSAPkcsSign.SignDigest(Byte[] digest, HashAlgorithmName pkcsAlgorithm)
at OpenVsixSignTool.Core.SigningContext.SignDigest(Byte[] digest)
at OpenVsixSignTool.Core.XmlSignatureBuilder.BuildSignatureValue(Byte[] signerInfoElementHash)
at OpenVsixSignTool.Core.XmlSignatureBuilder.Build()
at OpenVsixSignTool.Core.OpcPackageSignatureBuilder.Sign(HashAlgorithmName fileDigestAlgorithm, X509Certificate2 certificate)
at OpenVsixSignTool.SignCommand.PerformSignOnVsix(String vsixPath, Boolean force, Uri timestampUri, HashAlgorithmName fileDigestAlgorithm, HashAlgorithmName timestampDigestAlgorithm, X509Certificate2 certificate)
at OpenVsixSignTool.SignCommand.Sign(CommandOption sha1, CommandOption pfxPath, CommandOption password, CommandOption timestampUrl, CommandOption timestampAlgorithm, CommandOption fileDigest, CommandOption force, CommandArgument vsixPath)
at OpenVsixSignTool.Program.<>c__DisplayClass0_0.

b__1()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)

@vcsjones vcsjones added the bug label Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant