Project

General

Profile

Bug #41044

Fix traceback when creating an internal certificate

Added by Bonnie Follweiler 9 months ago. Updated 8 months ago.

Status:
Done
Priority:
No priority
Assignee:
Waqar Ahmed
Category:
Middleware
Target version:
Seen in:
Severity:
Med High
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

In FreeNAS 11.1-U6 Internal1
I get a traceback message when trying to create Internal Certificate
Request Method: POST
Request URL: http://10.231.3.50/system/certificate/create/internal/
Software Version: FreeNAS-11.1-U6-INTERNAL1 (63af3f037)
Exception Type: TypeError
Exception Value:

serial must be an integer

Exception Location: /usr/local/lib/python3.6/site-packages/OpenSSL/crypto.py in set_serial_number, line 1148
Server time: Wed, 8 Aug 2018 12:38:08 -0400

Traceback

Environment:

Software Version: FreeNAS-11.1-U6-INTERNAL1 (63af3f037)
Request Method: POST
Request URL: http://10.231.3.50/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
1984. form.save()
File "./freenasUI/system/forms.py" in save
3332. cert.set_serial_number(cert_serial)
File "/usr/local/lib/python3.6/site-packages/OpenSSL/crypto.py" in set_serial_number
1148. raise TypeError("serial must be an integer")

Exception Type: TypeError at /system/certificate/create/internal/
Exception Value: serial must be an integer

Request information
GET

No GET data
POST
Variable Value
all ''
cert_signedby '1'
cert_name 'minis3test'
cert_key_length '2048'
cert_digest_algorithm 'SHA256'
cert_lifetime '3650'
cert_country 'US'
cert_state 'Tennessee'
cert_city 'Maryville'
cert_organization 'iXsystems'
cert_email ''
cert_common 'minixls3cert'
cert_san ''
__form_id 'form_CertificateCreateInternalForm'
FILES

No FILES data
COOKIES
Variable Value
csrftoken '********'
fntreeSaveStateCookie 'root%2Croot%2F1%2Croot%2F1%2F5%2Croot%2F62%2Croot%2F1%2F6%2Croot%2F120'
sessionid '39qchw8e4vhjdecbznka1vz7t2unyctp'
META
Variable Value

Debug coming as soon as it's done

Associated revisions

Revision 9cbf3e85 (diff)
Added by Waqar Ahmed 9 months ago

Bug fix for serial field in certs for 11.1/U-6

This commit fixes a bug in which the system was unable to set serials for certs because of a type error.
Ticket: #41044

Revision 3964ce38 (diff)
Added by Waqar Ahmed 9 months ago

Bug fix for serial field in certs for 11.1/U-6

This commit fixes a bug in which the system was unable to set serials for certs because of a type error.
Ticket: #41044

History

#1 Updated by William Grzybowski 9 months ago

  • Assignee changed from William Grzybowski to Waqar Ahmed
  • Severity changed from New to Med High

Waqar, can you investigate this, please? Not sure how this regressed.

#2 Updated by Dru Lavigne 9 months ago

  • Target version changed from Backlog to 11.1-U6

#3 Updated by Bonnie Follweiler 9 months ago

  • File debug-bonniemini-20180808130843.tgz added

#4 Updated by Bonnie Follweiler 9 months ago

  • Private changed from No to Yes

#5 Updated by Waqar Ahmed 9 months ago

  • Status changed from Unscreened to In Progress

#6 Updated by Dru Lavigne 9 months ago

  • Subject changed from Traceback when creating an Internal Certificate to Fix traceback when creating an internal certificate
  • Status changed from In Progress to Ready for Testing
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#7 Updated by Dru Lavigne 9 months ago

  • Private changed from Yes to No

#8 Updated by Bonnie Follweiler 8 months ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Passed Testing in FreeNAS-11.1-U6-INTERNAL3

#9 Updated by Dru Lavigne 8 months ago

  • Status changed from Passed Testing to Done

#10 Updated by Dru Lavigne 8 months ago

  • File deleted (debug-bonniemini-20180808130843.tgz)

Also available in: Atom PDF