Project

General

Profile

Bug #26086

Creating internal certificate fails

Added by Mykolas Norvaisas about 3 years ago. Updated about 3 years ago.

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

Description

I'm getting below traceback when trying to create internal certificate using old GUI. Internal CA is already created earlier. Choosing Key length and Digest algorithm makes no difference. FreeNAS-11-MASTER-201710050508

Environment:

Software Version: FreeNAS-11-MASTER-201710050508 (71efab2)
Request Method: POST
Request URL: http://192.168.10.7/system/certificate/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 certificate_create_internal
  1764.             form.save()
File "./freenasUI/system/forms.py" in save
  3227.         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/certificate/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')]
create-cert1.JPG (59.4 KB) create-cert1.JPG Mykolas Norvaisas, 10/05/2017 12:46 PM
12632

History

#1 Updated by Dru Lavigne about 3 years ago

  • Assignee changed from Release Council to William Grzybowski

#2 Updated by William Grzybowski about 3 years ago

  • Assignee changed from William Grzybowski to Nikola Gigic
  • Priority changed from No priority to Regression
  • Target version set to Master - FreeNAS Nightlies

#3 Updated by Nikola Gigic about 3 years ago

  • Status changed from Unscreened to Screened

#4 Updated by Nikola Gigic about 3 years ago

  • Status changed from Screened to Fix In Progress

#5 Updated by William Grzybowski about 3 years ago

  • Status changed from Fix In Progress to Resolved
  • Needs QA changed from Yes to No

#6 Updated by Dru Lavigne about 3 years ago

  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Verified that traceback is fixed in 11-MASTER-201710161745.

Also available in: Atom PDF