diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index 7e1e34e2..f59ea78a 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -1458,6 +1458,8 @@ class CertificateSigningRequestBuilder(object): """ if not isinstance(name, Name): raise TypeError('Expecting x509.Name object.') + if self._subject_name is not None: + raise ValueError('The subject name may only be set once.') return CertificateSigningRequestBuilder(name, self._extensions) def add_extension(self, extension, critical=False): |