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

Creating a new Open VPN Client fails with OpenSSL.crypto.Error: [('PEM routines', 'get_name', 'no start line')]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Engineering Closed (View Workflow)
    • Priority: Low
    • Resolution: Need additional information
    • Affects Version/s: SCALE-21.04-ALPHA.1
    • Fix Version/s: N/A
    • Component/s: Networking
    • Impact:
      High

      Description

      Attempting to create a new OpenVPN client fails with the following traceback:

      Error: Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 138, in call_method
          result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1223, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/service.py", line 389, in update
          rv = await self.middleware._call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1223, in _call
          return await methodobj(*prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 999, in nf
          return await f(*args, **kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/vpn.py", line 635, in do_update
          config = await self.validate(config, 'openvpn_client_update')
        File "/usr/lib/python3/dist-packages/middlewared/plugins/vpn.py", line 535, in validate
          verrors, data = await OpenVPN.common_validation(
        File "/usr/lib/python3/dist-packages/middlewared/plugins/vpn.py", line 197, in common_validation
          verrors = await OpenVPN.cert_validation(middleware, data, schema, mode, verrors)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/vpn.py", line 120, in cert_validation
          if root_ca and not await middleware.call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1266, in call
          return await self._call(
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1234, in _call
          return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
        File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1138, in run_in_executor
          return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
        File "/usr/lib/python3/dist-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
          result = self.fn(*self.args, **self.kwargs)
        File "/usr/lib/python3/dist-packages/middlewared/plugins/crypto.py", line 305, in validate_cert_with_chain
          crypto.load_certificate(crypto.FILETYPE_PEM, chain_cert)
        File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1951, in load_certificate
          _raise_current_error()
        File "/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 57, in exception_from_error_queue
          raise exception_type(errors)
      OpenSSL.crypto.Error: [('PEM routines', 'get_name', 'no start line')]

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Triage Team
                Reporter:
                johnp John Parton
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: