Project

General

Profile

Bug #26164

Traceback when creating CA

Added by Dru Lavigne almost 3 years ago. Updated almost 3 years ago.

Status:
Closed: Duplicate
Priority:
Regression
Assignee:
Nikola Gigic
Category:
GUI (new)
Target version:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Note that this fails if I keep "Subject Alternate Names" blank but succeeds if I put a value (such as "a") into that field.

Request Method: POST
Request URL: http://10.231.2.23/system/CA/create/internal/
Software Version: FreeNAS-11-MASTER-201710121626 (0e8e2f8f9)
Exception Type: Error
Exception Value:

[('X509 V3 routines', 'X509V3_parse_list', 'invalid null value'), ('X509 V3 routines', 'DO_EXT_NCONF', 'invalid extension string'), ('X509 V3 routines', 'X509V3_EXT_nconf', 'error in extension')]

Exception Location: /usr/local/lib/python3.6/site-packages/OpenSSL/_util.py in exception_from_error_queue, line 48
Server time: Thu, 12 Oct 2017 11:06:11 -0700
Traceback
Environment:

Software Version: FreeNAS-11-MASTER-201710121626 (0e8e2f8f9)
Request Method: POST
Request URL: http://10.231.2.23/system/CA/create/internal/

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/system/views.py" in CA_create_internal
1634. form.save()
File "./freenasUI/system/forms.py" in save
2662. (cert, key) = create_self_signed_CA(cert_info)
File "./freenasUI/common/ssl.py" in create_self_signed_CA
80. cert = create_certificate(cert_info)
File "./freenasUI/common/ssl.py" in create_certificate
59. cert.add_extensions([crypto.X509Extension(b"subjectAltName", False, f"{default_san_type}:{cert_info['san']}".encode())])
File "/usr/local/lib/python3.6/site-packages/OpenSSL/crypto.py" in init
722. _raise_current_error()
File "/usr/local/lib/python3.6/site-packages/OpenSSL/_util.py" in exception_from_error_queue
48. raise exception_type(errors)

Exception Type: Error at /system/CA/create/internal/
Exception Value: [('X509 V3 routines', 'X509V3_parse_list', 'invalid null value'), ('X509 V3 routines', 'DO_EXT_NCONF', 'invalid extension string'), ('X509 V3 routines', 'X509V3_EXT_nconf', 'error in extension')]

Request information
GET

No GET data
POST
Variable Value
all ''
cert_name 'blah'
cert_key_length '2048'
cert_digest_algorithm 'SHA256'
cert_lifetime '3650'
cert_country 'US'
cert_state 'a'
cert_city 'a'
cert_organization 'a'
cert_email 'a'
cert_common 'a'
cert_san ''
__form_id 'form_CertificateAuthorityCreateInternalForm'
FILES

No FILES data
COOKIES
Variable Value
csrftoken 'eXmtnfu1n1yqnRYCV8fLVkVTu93SxO5IKv1XCHJXhypyJqYuiJsCVMpVEsXeICjQ'
sessionid 'hk1pry6mv3u7x05ux9rnwzj74qrpxu5x'
fntreeSaveStateCookie 'root'
META
Variable Value

History

#1 Updated by William Grzybowski almost 3 years ago

  • Assignee changed from William Grzybowski to Nikola Gigic
  • Priority changed from No priority to Regression

#2 Updated by Nikola Gigic almost 3 years ago

  • Status changed from Unscreened to Screened

#3 Updated by Nikola Gigic almost 3 years ago

  • Status changed from Screened to Fix In Progress

#4 Updated by Nikola Gigic almost 3 years ago

  • Status changed from Fix In Progress to Closed: Duplicate

Duplicate to #26086

#5 Updated by Dru Lavigne almost 3 years ago

  • Target version changed from 11.1 to N/A

Also available in: Atom PDF