Click here to Skip to main content
15,898,945 members
Home / Discussions / COM
   

COM

 
AnswerRe: javascript menu on masterpage and dropdown list on contentpage problem in IE Pin
help as an alias20-Aug-07 18:29
help as an alias20-Aug-07 18:29 
QuestionGetInterfaceFromGlobal() hanging Pin
simon heffer15-Aug-07 3:42
simon heffer15-Aug-07 3:42 
AnswerRe: GetInterfaceFromGlobal() hanging Pin
Vitaly Tomilov20-Aug-07 0:40
Vitaly Tomilov20-Aug-07 0:40 
QuestionAccess Is Denied Error Pin
Captain Trips14-Aug-07 4:44
Captain Trips14-Aug-07 4:44 
AnswerRe: Access Is Denied Error Pin
User 21559715-Aug-07 0:13
User 21559715-Aug-07 0:13 
Questionc++ managed wrapper class for unmanaged class Pin
Pankaj.Jain13-Aug-07 23:52
professionalPankaj.Jain13-Aug-07 23:52 
QuestionPDF from HTML content Pin
Rajkamal_dfine13-Aug-07 18:24
Rajkamal_dfine13-Aug-07 18:24 
QuestionUrgent Help !! In certifcate enrollment in Windows CA using C# ( XENROLL.dll) Pin
fireline108213-Aug-07 7:47
fireline108213-Aug-07 7:47 
Hi every body

I am doing a project in which I have a Windows Certificate Authority server and RADIUS server (IAS RADIUS server under windows ) . In this project the clients will login to the domain and get certificates from CA. I know this can be done through Windows configuration, but it's not good. I want to understand what is going behind, so I want to develop my own code. In brief, My question is :

I want to do certificate enrollment and request through C# program. I saw many codes in websites. They are using XENROLL.dll library to do enrollment, but I couldn't understand. Sorry I am still new in C#, so I need any tutorial or guide about this to guide me how can I do it.

I don't know from where these guys got tutorials about Certifcate enrollment, request ...... etc

It's hard to start a project on this without deep understanding of the methods used and classes.



Here is an example of the codes I found. This to give you a total figure of what I mean. Of course, this code is not complete and probably has some mistakes.

*****************************

int creationState;
string CertificateTemplate = "My Certificate Template";
string ProviderName ="Microsoft Enhanced Cryptographic Provider v1.0";
string EmailCertOID = "1.3.6.1.5.5.7.3.4" ; //Email certificate
// creating cert request:

XENROLLLib.CEnroll certEnroll = new XENROLLLib.CEnroll();
certEnroll.GenKeyFlags = 1024 * (256*256);
certEnroll.GenKeyFlags = CRYPT_EXPORTABLE;
certEnroll.UseExistingKeySet = 0;
certEnroll.ContainerName() = cert;
certEnroll.addCertTypeToRequest (CertificateTemplate);
certEnroll.ProviderName =ProviderName;
string dn = "CN="+ CommonName.Text +",E="+ Email.Text +",O="+
Organisation.Text +",L="+ Stadt.Text +",S="+ State.Text
+",C="+Countrycode.Text+"";
string req = certEnroll.createPKCS10(dn, EmailCertOID);
int CR_IN_BASE64 = 0x1;
int CR_IN_PKCS10 = 0x100;

CERTCLIENTLib.CCertRequest certRequest = new CERTCLIENTLib.CCertRequest();
creationState = certRequest.Submit(CR_IN_BASE64 | CR_IN_PKCS10, req,
"", @"Certserver\MyCertCA");


***************************************



Please Please Please if any one know something about this PLEASE AGAIN guide me. It is toooo urgent. I have just two months to submit the project.

Please I need at lease a tutorial.

Thanx to ALL

QuestionPrintPreview Implementation Pin
Rakesh__Patil12-Aug-07 19:03
Rakesh__Patil12-Aug-07 19:03 
Questionproblem About DCOM on Windows 2003 Server Pin
kcynic11-Aug-07 16:47
kcynic11-Aug-07 16:47 
QuestionShow/hide deskband ? Pin
vilius_m11-Aug-07 10:44
vilius_m11-Aug-07 10:44 
QuestionCom Interop Error ?WMI query language not supported? Pin
Blizzardice10-Aug-07 12:23
Blizzardice10-Aug-07 12:23 
QuestionWhat is difference between BSTR, CComBSTR, _bstr_t Pin
Nandu_77b10-Aug-07 5:00
Nandu_77b10-Aug-07 5:00 
AnswerRe: What is difference between BSTR, CComBSTR, _bstr_t Pin
Michael Dunn10-Aug-07 14:58
sitebuilderMichael Dunn10-Aug-07 14:58 
QuestionAdvantage of COM Pin
Nandu_77b10-Aug-07 2:40
Nandu_77b10-Aug-07 2:40 
AnswerRe: Advantage of COM Pin
Nandu_77b21-Aug-07 5:22
Nandu_77b21-Aug-07 5:22 
QuestionCOM excpetions Pin
Nandu_77b10-Aug-07 0:10
Nandu_77b10-Aug-07 0:10 
AnswerRe: COM excpetions Pin
Jonathan [Darka]10-Aug-07 4:54
professionalJonathan [Darka]10-Aug-07 4:54 
GeneralRe: COM excpetions Pin
Nandu_77b13-Aug-07 0:25
Nandu_77b13-Aug-07 0:25 
GeneralRe: COM excpetions Pin
Jonathan [Darka]15-Aug-07 7:26
professionalJonathan [Darka]15-Aug-07 7:26 
QuestionLockServer function Pin
Nageswara Yao9-Aug-07 0:23
Nageswara Yao9-Aug-07 0:23 
AnswerRe: LockServer function Pin
CPallini9-Aug-07 4:55
mveCPallini9-Aug-07 4:55 
QuestionCOM Runtime Error !!! Pin
GauranG Shah8-Aug-07 20:47
GauranG Shah8-Aug-07 20:47 
AnswerRe: COM Runtime Error !!! Pin
«_Superman_»9-Aug-07 23:32
professional«_Superman_»9-Aug-07 23:32 
QuestionRe: COM Runtime Error !!! Pin
prasad_som9-Aug-07 23:51
prasad_som9-Aug-07 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.