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

Unable to cast COM object of type 'CERTENROLLLib.CX509PrivateKeyClass' #28

Open
F3eev opened this issue Feb 17, 2023 · 0 comments
Open

Comments

@F3eev
Copy link

F3eev commented Feb 17, 2023

env:
CS : server 2012
Client : server 2012

When I apply for a template, the following error occurs.

error description:


/ | | | ()/ |
| | ___ _ | | | | _ _
| | / _ \ '
_| | | | | | |
| |
| __/ | | |
| | | | |
| |
_
___|| _||| _, |
/ |
|
./
v1.1.0

[*] Action: Request a Certificates

[] Current user context : TEST\wangqiang
[
] No subject name specified, using current context as subject.

[] Template : ESC1
[
] Subject : CN=Wang Qiang, OU=company, DC=test, DC=com
[*] AltName : cadmin

[!] Unhandled Certify exception:

System.InvalidCastException: Unable to cast COM object of type 'CERTENROLLLib.CX509PrivateKeyClass' to interface type 'CERTENROLLLib.IX509PrivateKey2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{728AB362-217D-11DA-B2A4-000E7BBB2B09}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at CERTENROLLLib.CX509PrivateKeyClass.set_Length(Int32 pValue)
at Certify.Cert.CreatePrivateKey(Boolean machineContext)
at Certify.Cert.CreateCertRequestMessage(String templateName, Boolean machineContext, String subjectName, String altName, String sidExtension)
at Certify.Cert.RequestCert(String CA, Boolean machineContext, String templateName, String subject, String altName, String sidExtension, Boolean install)
at Certify.Commands.Request.Execute(Dictionary2 arguments) at Certify.CommandCollection.ExecuteCommand(String commandName, Dictionary2 arguments)
at Certify.Program.MainExecute(String commandName, Dictionary`2 parsedArgs)

Certify completed in 00:00:00.2333173

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

1 participant