From 824155743fe3087bb2b2116ad3a8a363f550f9ab Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Tue, 18 Dec 2018 01:26:40 +0200 Subject: Remove spaces from RFC 4514 strings for better compliance (#4643) (#4646) RFC 4514 does not explicitly allow whitespace between separators: https://tools.ietf.org/html/rfc4514 Reported-by: David Arnold --- src/cryptography/x509/name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cryptography/x509/name.py b/src/cryptography/x509/name.py index 470862c2..026b79c2 100644 --- a/src/cryptography/x509/name.py +++ b/src/cryptography/x509/name.py @@ -218,7 +218,7 @@ class Name(object): elements are separated by '+'. The latter is almost never used in real world certificates. """ - return ', '.join(attr.rfc4514_string() for attr in self._attributes) + return ','.join(attr.rfc4514_string() for attr in self._attributes) def get_attributes_for_oid(self, oid): return [i for i in self if i.oid == oid] -- cgit v1.2.3