Quantcast
Channel: Security forum
Viewing all articles
Browse latest Browse all 12072

Error ADCS revoke a certificate using CERTADMINLib.dll

$
0
0
Hi, I developed a service to manage Active Directory Certificate Services, but when I try to revoke a certificate using CERTADMINLib.dll is obtained an error message.
 
I generated CERTADMINLib.dll with tlbimp command and certadm.dll as follow:
 
tlbimp certadm.dll /machine:x64
 
Because my system running 64bits, after I copy certadm.dll in System32 directory and register dll with regsvr32... I added CERTADMINLib.dll in the   project references and created a instance of the CCertAdmin interface as follow:
 
CERTADMINLib.CCertAdmin objAdmin = new CERTADMINLib.CCertAdmin();
 
And I got the error:
 
Retrieving the COM class factory for component with CLSID {37EABAF0-7FB6-11D0-8817-00A0C903B83C} failed due to the following error: 80040154.
 
Any ideas to solved this problem?
 
Note:
 
I tried with x86 too, same results

Viewing all articles
Browse latest Browse all 12072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>