Allow spaces after the comma when converting X509 names
diff --git a/library/x509write.c b/library/x509write.c
index c57e56a..aed6624 100644
--- a/library/x509write.c
+++ b/library/x509write.c
@@ -102,6 +102,9 @@
                 return( POLARSSL_ERR_X509WRITE_MALLOC_FAILED );
             }
 
+            while( c < end && *(c + 1) == ' ' )
+                c++;
+
             s = c + 1;
             in_tag = 1;
         }