Allow a client certificate subject's CN to be blank.
This commit is contained in:
parent
ff2832f034
commit
5e0fd57f93
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
### Unreleased
|
### Unreleased
|
||||||
|
|
||||||
|
- Allow a client certificate subject's CN to be blank.
|
||||||
|
|
||||||
### v0.2.2 (2012-03-31)
|
### v0.2.2 (2012-03-31)
|
||||||
|
|
||||||
- Fix a regression in path matching for the static directory application.
|
- Fix a regression in path matching for the static directory application.
|
||||||
|
|
|
@ -529,7 +529,7 @@ class GeminiRequestHandler:
|
||||||
environ.update(
|
environ.update(
|
||||||
{
|
{
|
||||||
"AUTH_TYPE": "CERTIFICATE",
|
"AUTH_TYPE": "CERTIFICATE",
|
||||||
"REMOTE_USER": subject["commonName"],
|
"REMOTE_USER": subject.get("commonName", ""),
|
||||||
"TLS_CLIENT_NOT_BEFORE": self.client_cert["notBefore"],
|
"TLS_CLIENT_NOT_BEFORE": self.client_cert["notBefore"],
|
||||||
"TLS_CLIENT_NOT_AFTER": self.client_cert["notAfter"],
|
"TLS_CLIENT_NOT_AFTER": self.client_cert["notAfter"],
|
||||||
"TLS_CLIENT_SERIAL_NUMBER": self.client_cert["serialNumber"],
|
"TLS_CLIENT_SERIAL_NUMBER": self.client_cert["serialNumber"],
|
||||||
|
|
Loading…
Reference in New Issue