Hi Sebastien Thank you for your quick reply. The ToString() gives me the following: "[1]Certificate Policy:\r\n\tPolicyIdentifier=1.1.1.1.1.1.1.1.1.2\r\n"
...where the PolicyIdentifier is just what I need. Maybe not the best way to find the identifier, but at least it works for now. /Kim -----Oprindelig meddelelse----- Fra: Sebastien Pouliot [mailto:[EMAIL PROTECTED] Sendt: 23. februar 2005 13:33 Til: Hellan.Kim KHE; [email protected] Emne: RE: [Mono-list] CertificatePoliciesExtension Hello Kim, This extension is only partially supported in Mono.Security.dll, so you can either: a. decode it manually using the ASN1 class; b. Parse the result of CertificatePoliciesExtension.ToString () to see if your OID is present. The last one is much easier if you only want to find your OID from a string representation. Sebastien Pouliot home: [EMAIL PROTECTED] blog: http://pages.infinit.net/ctech/poupou.html -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hellan.Kim KHE Sent: 23 fevrier 2005 05:01 To: [email protected] Subject: [Mono-list] CertificatePoliciesExtension Hi I just need the Policy OID (like "1.2.3.4.5.6.7.8") from this extension, but I don't know how extract this information? The class contains a "policies" member, but this member is private, so I can't get the OID. Any ideas how to get the Policy OID? Med venlig hilsen / Best regards ___________________________________________________________________ www.kmd.dk www.kundenet.kmd.dk www.eboks.dk www.civitas.dk www.netborger.dk Hvis du har modtaget denne mail ved en fejl vil jeg gerne, at du informerer mig og sletter den. KMD skaber it-services, der fremmer effektivitet hos det offentlige, erhvervslivet og borgerne. If you received this e-mail by mistake, please notify me and delete it. Thank you. Our mission is to enhance the efficiency of the public sector and improve its service of the general public. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
