SV: [Mono-list] CertificatePoliciesExtension
Hellan.Kim KHE
KHE@kmd.dk
Wed, 23 Feb 2005 14:23:25 +0100
Hi Sebastien
Thank you for your quick reply.
The ToString() gives me the following:
"[1]Certificate Policy:\r\n\tPolicyIdentifier=3D1.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:spouliot@videotron.ca]=20
Sendt: 23. februar 2005 13:33
Til: Hellan.Kim KHE; mono-list@lists.ximian.com
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: spouliot@videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html
-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Hellan.Kim KHE
Sent: 23 fevrier 2005 05:01
To: mono-list@lists.ximian.com
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.=20