diff options
author | Marti Raudsepp <marti@juffo.org> | 2018-12-18 01:26:40 +0200 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-12-18 07:26:40 +0800 |
commit | 824155743fe3087bb2b2116ad3a8a363f550f9ab (patch) | |
tree | 67eb672c872e824525ed77b05e79806bf27c240a /src/cryptography/x509/name.py | |
parent | 89e1e34d977e565171329c26de6ce9c8f12340e7 (diff) | |
download | cryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.tar.gz cryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.tar.bz2 cryptography-824155743fe3087bb2b2116ad3a8a363f550f9ab.zip |
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 <dar@xoe.solutions>
Diffstat (limited to 'src/cryptography/x509/name.py')
-rw-r--r-- | src/cryptography/x509/name.py | 2 |
1 files changed, 1 insertions, 1 deletions
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] |