Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-106812

TrueNAS CORE 12.0 -- Import of certificates is impossible.

    XMLWordPrintable

    Details

    • Impact:
      High

      Description

      Hello everyone!

      When I try to import a domain certificate I receive this response:

      Error: Traceback (most recent call last):
        File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 361, in run
          await self.future
        File "/usr/local/lib/python3.8/site-packages/middlewared/job.py", line 397, in __run_body
          rv = await self.method(*([self] + args))
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
          return await f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 1653, in do_create
          verrors = await self.validate_common_attributes(data, 'certificate_create')
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 1264, in validate_common_attributes
          await _validate_common_attributes(self.middleware, data, verrors, schema_name)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 96, in _validate_common_attributes
          if not matches or not await middleware.call('cryptokey.load_certificate', certificate):
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1229, in call
          return await self._call(
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1198, in _call
          return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
        File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1102, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/local/lib/python3.8/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 977, in nf
          return f(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 378, in load_certificate
          cert_info = self.get_x509_subject(cert)
        File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/crypto.py", line 437, in get_x509_subject
          ] = ext.__str__()
        File "/usr/local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 824, in __str__
          _openssl_assert(print_result != 0)
        File "/usr/local/lib/python3.8/site-packages/OpenSSL/_util.py", line 67, in openssl_assert
          exception_from_error_queue(error)
        File "/usr/local/lib/python3.8/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
          raise exception_type(errors)
      OpenSSL.crypto.Error: []

       

      What does that mean?

       

      Kind regards, Vadim.

        Attachments

          Attachments

            JEditor

              Issue Links

                Activity

                  People

                  Assignee:
                  waqar Waqar Ahmed
                  Reporter:
                  vadimax Vadim Maksimenko
                  Watchers:
                  Bug Clerk, Vadim Maksimenko, Waqar Ahmed, William Grzybowski
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved: