<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/cryptography.git/src/cryptography/x509/name.py, branch macos-github-actions</title>
<subtitle>github.com: pyca/cryptography.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/'/>
<entry>
<title>Allow NameAttribute.value to be an empty string (#5109)</title>
<updated>2020-03-19T19:23:35+00:00</updated>
<author>
<name>Andrea De Pasquale</name>
<email>447065+adepasquale@users.noreply.github.com</email>
</author>
<published>2020-03-19T19:23:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=87b2749c52e688c809f1861e55d958c64147493c'/>
<id>87b2749c52e688c809f1861e55d958c64147493c</id>
<content type='text'>
* Allow NameAttribute.value to be an empty string

RFC 4514 https://tools.ietf.org/html/rfc4514 does not mention that
"AttributeValue" can not be an empty (zero-length) string.

Fixes #5106

* reverse order to match fix from another PR

Co-authored-by: Paul Kehrer &lt;paul.l.kehrer@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allow NameAttribute.value to be an empty string

RFC 4514 https://tools.ietf.org/html/rfc4514 does not mention that
"AttributeValue" can not be an empty (zero-length) string.

Fixes #5106

* reverse order to match fix from another PR

Co-authored-by: Paul Kehrer &lt;paul.l.kehrer@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Reversed the order of RDNs in x509.Name.rfc4514_string() (#5120)</title>
<updated>2020-03-03T02:26:07+00:00</updated>
<author>
<name>Thomas Erbesdobler</name>
<email>t.erbesdobler@gmx.de</email>
</author>
<published>2020-03-03T02:26:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=ed71c5cc07e4a0bb7a58f4e0731e5af3d4d4aa53'/>
<id>ed71c5cc07e4a0bb7a58f4e0731e5af3d4d4aa53</id>
<content type='text'>
RFC4514 requires in section 2.1 that RDNs are converted to string
representation in reversed order.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RFC4514 requires in section 2.1 that RDNs are converted to string
representation in reversed order.</pre>
</div>
</content>
</entry>
<entry>
<title>Use literals for collections and comprehensions. (#5091)</title>
<updated>2020-01-12T22:29:17+00:00</updated>
<author>
<name>Mads Jensen</name>
<email>mje@inducks.org</email>
</author>
<published>2020-01-12T22:29:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=a849f40556bd022c7478a44e935359c5fac83193'/>
<id>a849f40556bd022c7478a44e935359c5fac83193</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>4810 bugfix: avoid UnicodeEncodeError on python 2 (#4846)</title>
<updated>2019-04-16T05:46:57+00:00</updated>
<author>
<name>redshiftzero</name>
<email>jen@freedom.press</email>
</author>
<published>2019-04-16T05:46:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=276f5c49d55b5ff7694f2f35ae538282ec360e7d'/>
<id>276f5c49d55b5ff7694f2f35ae538282ec360e7d</id>
<content type='text'>
* test: regression test for UnicodeEncodeError in x509 name in #4810

added utf8 encoding at the top of the file due to PEP 263

* bugfix: #4810 resolve UnicodeEncodeError in x509 name
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test: regression test for UnicodeEncodeError in x509 name in #4810

added utf8 encoding at the top of the file due to PEP 263

* bugfix: #4810 resolve UnicodeEncodeError in x509 name
</pre>
</div>
</content>
</entry>
<entry>
<title>Simplify string formatting (#4757)</title>
<updated>2019-02-20T04:38:32+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2019-02-20T04:38:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=ac1d13f43dea5ebee0506dc229cd431660916c73'/>
<id>ac1d13f43dea5ebee0506dc229cd431660916c73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove spaces from RFC 4514 strings for better compliance (#4643) (#4646)</title>
<updated>2018-12-17T23:26:40+00:00</updated>
<author>
<name>Marti Raudsepp</name>
<email>marti@juffo.org</email>
</author>
<published>2018-12-17T23:26:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=824155743fe3087bb2b2116ad3a8a363f550f9ab'/>
<id>824155743fe3087bb2b2116ad3a8a363f550f9ab</id>
<content type='text'>
RFC 4514 does not explicitly allow whitespace between separators:
https://tools.ietf.org/html/rfc4514

Reported-by: David Arnold &lt;dar@xoe.solutions&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
RFC 4514 does not explicitly allow whitespace between separators:
https://tools.ietf.org/html/rfc4514

Reported-by: David Arnold &lt;dar@xoe.solutions&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Add RFC 4514 Distinguished Name formatting for Name, RDN and NameAttribute (#4304)</title>
<updated>2018-12-08T01:26:07+00:00</updated>
<author>
<name>Marti Raudsepp</name>
<email>marti@juffo.org</email>
</author>
<published>2018-12-08T01:26:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=c3d38b5d80a955aee4b160bb97464a20c4992da7'/>
<id>c3d38b5d80a955aee4b160bb97464a20c4992da7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make RelativeDistinguishedName preserve attribtue order (#4306)</title>
<updated>2018-07-09T13:11:18+00:00</updated>
<author>
<name>Marti Raudsepp</name>
<email>marti@juffo.org</email>
</author>
<published>2018-07-09T13:11:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=9e1873af35a2b530e71e1579b2d62c233b75ba26'/>
<id>9e1873af35a2b530e71e1579b2d62c233b75ba26</id>
<content type='text'>
Duplicate attributes now raise an error instead of silently discarding
duplicates.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Duplicate attributes now raise an error instead of silently discarding
duplicates.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix ASN1 string type encoding for several Name OIDs (#4035)</title>
<updated>2017-12-01T02:48:56+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2017-12-01T02:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=4662d44fd3db5078a1882100653a3dbab3e3c7a1'/>
<id>4662d44fd3db5078a1882100653a3dbab3e3c7a1</id>
<content type='text'>
* Fix ASN1 string type encoding for several Name OIDs

When we changed over to the new type encoding system we didn't verify
that the new code exactly matched the ASN1 string types that OpenSSL was
previously choosing. This caused serialNumber, dnQualifier,
emailAddress, and domainComponent to change from their proper encodings
to UTF8String as of version 2.1.

Now we check to see if there's a sentinel value (indicating no custom
type has been passed) and then check if the OID has a different default
than UTF8. If it does, we set it.

This PR also adds tests for the ASN1 string type of ever supported
NameOID.

* review feedback
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix ASN1 string type encoding for several Name OIDs

When we changed over to the new type encoding system we didn't verify
that the new code exactly matched the ASN1 string types that OpenSSL was
previously choosing. This caused serialNumber, dnQualifier,
emailAddress, and domainComponent to change from their proper encodings
to UTF8String as of version 2.1.

Now we check to see if there's a sentinel value (indicating no custom
type has been passed) and then check if the OID has a different default
than UTF8. If it does, we set it.

This PR also adds tests for the ASN1 string type of ever supported
NameOID.

* review feedback
</pre>
</div>
</content>
</entry>
<entry>
<title>both parse and encode the ASN1 string type for Name attributes (#3896)</title>
<updated>2017-09-26T02:23:24+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2017-09-26T02:23:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/cryptography.git/commit/?id=72c92f5ed1a3fe1b5196e0247bbe4cbe5e93c1a7'/>
<id>72c92f5ed1a3fe1b5196e0247bbe4cbe5e93c1a7</id>
<content type='text'>
* both parse and encode the ASN1 string type for Name attributes

Previously cryptography encoded everything (except country names) as
UTF8String. This caused problems with chain building in libraries like
NSS where the subject and issuer are expected to match byte-for-byte.

With this change we now parse and store the ASN1 string type as a
private _type in NameAttribute. We then use this to encode when issuing
a new certificate. This allows the CertificateBuilder to properly
construct an identical issuer and fixes the issue with NSS.

* make the sentinel private too
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* both parse and encode the ASN1 string type for Name attributes

Previously cryptography encoded everything (except country names) as
UTF8String. This caused problems with chain building in libraries like
NSS where the subject and issuer are expected to match byte-for-byte.

With this change we now parse and store the ASN1 string type as a
private _type in NameAttribute. We then use this to encode when issuing
a new certificate. This allows the CertificateBuilder to properly
construct an identical issuer and fixes the issue with NSS.

* make the sentinel private too
</pre>
</div>
</content>
</entry>
</feed>
