* X509Certificate.cs: Accept text before the PEM certificate itself.
[Fix bug #396486]
svn path=/trunk/mcs/; revision=104761
+2008-06-03 Sebastien Pouliot <sebastien@ximian.com>
+
+ * X509Certificate.cs: Accept text before the PEM certificate itself.
+ [Fix bug #396486]
+
2007-05-09 Sebastien Pouliot <sebastien@ximian.com>
* PKCS12.cs: Adds SecretBag support. Patch by Jay Miller.
{
if (data != null) {
// does it looks like PEM ?
- if ((data.Length > 0) && (data [0] == 0x2D)) {
+ if ((data.Length > 0) && (data [0] != 0x30)) {
try {
data = PEM ("CERTIFICATE", data);
}