Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: TIP: Autosetting properties in C# using DefaultValue attributes Pin
Itai Basel20-Aug-11 19:58
Itai Basel20-Aug-11 19:58 
GeneralRe: TIP: Autosetting properties in C# using DefaultValue attributes Pin
Itai Basel20-Aug-11 20:09
Itai Basel20-Aug-11 20:09 
GeneralRe: TIP: Autosetting properties in C# using DefaultValue attributes Pin
Mycroft Holmes20-Aug-11 22:35
professionalMycroft Holmes20-Aug-11 22:35 
GeneralRe: TIP: Autosetting properties in C# using DefaultValue attributes Pin
PIEBALDconsult20-Aug-11 19:57
mvePIEBALDconsult20-Aug-11 19:57 
GeneralRe: TIP: Autosetting properties in C# using DefaultValue attributes Pin
thatraja20-Aug-11 21:40
professionalthatraja20-Aug-11 21:40 
QuestionShowing Picture in Crystal Reports from Table Pin
M Riaz Bashir20-Aug-11 11:26
M Riaz Bashir20-Aug-11 11:26 
AnswerRe: Showing Picture in Crystal Reports from Table Pin
thatraja20-Aug-11 21:35
professionalthatraja20-Aug-11 21:35 
QuestionHow to decode Certificate Signing Request (CSR) in XP [modified] Pin
Petri Luoto20-Aug-11 9:03
Petri Luoto20-Aug-11 9:03 
I need to decode CSR message (pkcs#10) to solve different kind of broblems in it.

The following piece of code works fine, but unfortunately only in vista and windows7, which uses Certenroll.lib. My code will be used also in XP, why I have included Xenroll.lib into my code as well. But what is the respective piece of code using xenroll to decode pkcs#10 request?

C#
if (Environment.OSVersion.Version.Major >= 6)
            {
CX509CertificateRequestPkcs10 request = new CX509CertificateRequestPkcs10();
request.InitializeDecode(txtP10.Text, EncodingType.XCN_CRYPT_STRING_BASE64_ANY);                    request.CheckSignature(Pkcs10AllowedSignatureTypes.AllowedKeySignature);
lblSubject.Text = "Subject:" + (((CX500DistinguishedName)request.Subject).Name);
lblKeyLenght.Text = "Key length:" + (request.PublicKey.Length);
lblAlgorithm.Text = "Algorithm:" + (request.HashAlgorithm.FriendlyName);
}
else
{ // how to decode pkcs#10 in XP?
}


Thanks for any help!

modified on Wednesday, August 24, 2011 1:44 PM

QuestionSome advise on the following code Pin
venomation20-Aug-11 8:48
venomation20-Aug-11 8:48 
AnswerRe: Some advise on the following code Pin
PIEBALDconsult20-Aug-11 13:04
mvePIEBALDconsult20-Aug-11 13:04 
AnswerRe: Some advise on the following code Pin
Mycroft Holmes20-Aug-11 13:35
professionalMycroft Holmes20-Aug-11 13:35 
GeneralRe: Some advise on the following code Pin
venomation20-Aug-11 13:53
venomation20-Aug-11 13:53 
GeneralRe: Some advise on the following code Pin
PIEBALDconsult20-Aug-11 14:18
mvePIEBALDconsult20-Aug-11 14:18 
AnswerRe: Some advise on the following code Pin
BobJanova21-Aug-11 22:40
BobJanova21-Aug-11 22:40 
QuestionIs it possible to call Excel XLA function from .NET via Microsoft.Office.Interop? Pin
devvvy20-Aug-11 4:35
devvvy20-Aug-11 4:35 
QuestionPreRequesties on Client system Pin
jojoba201120-Aug-11 0:26
jojoba201120-Aug-11 0:26 
SuggestionRe: PreRequesties on Client system Pin
DaveAuld20-Aug-11 0:32
professionalDaveAuld20-Aug-11 0:32 
AnswerRe: PreRequesties on Client system Pin
DaveAuld20-Aug-11 0:38
professionalDaveAuld20-Aug-11 0:38 
AnswerRe: PreRequesties on Client system Pin
Roger Wright20-Aug-11 4:25
professionalRoger Wright20-Aug-11 4:25 
Questioncommunication between two modem Pin
vanjier20-Aug-11 0:06
vanjier20-Aug-11 0:06 
AnswerRe: communication between two modem Pin
Richard MacCutchan20-Aug-11 0:30
mveRichard MacCutchan20-Aug-11 0:30 
GeneralRe: communication between two modem Pin
vanjier21-Aug-11 23:37
vanjier21-Aug-11 23:37 
GeneralRe: communication between two modem Pin
Richard MacCutchan22-Aug-11 0:32
mveRichard MacCutchan22-Aug-11 0:32 
GeneralRe: communication between two modem Pin
vanjier23-Aug-11 14:18
vanjier23-Aug-11 14:18 
GeneralRe: communication between two modem Pin
BobJanova22-Aug-11 3:39
BobJanova22-Aug-11 3:39 

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.