Cryptography: ValueError in .rfc4514_string()

Created on 22 Jan 2020  路  1Comment  路  Source: pyca/cryptography

Using cryptography==2.8 and calling .rfc4514_string() on a subject/issuer containing empty strings raises a ValueError exception.

https://github.com/pyca/cryptography/blob/2.8/src/cryptography/x509/name.py#L96-L97

Is there any reason for doing so? I know this might not be good practice, but it prevents a quick and easy way to display some certificates. For example, this one from code.jquery.com:

https://censys.io/certificates/23723c81a723301885ba8825da77c145f84c1e181cc9ec94899b0f3dc33bbf3e

```
C=US, ST=, L=, O=jquery, OU=Certificate Authority, CN=code.jquery.com

bugs x509

Most helpful comment

No this is a bug, we鈥檇 be happy to take a PR to fix this!

>All comments

No this is a bug, we鈥檇 be happy to take a PR to fix this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhishek-ram picture abhishek-ram  路  37Comments

danetrain picture danetrain  路  43Comments

doowon picture doowon  路  23Comments

freedge picture freedge  路  22Comments

reaperhulk picture reaperhulk  路  42Comments