Invalid Certificate When Generating Test Module Reports in SystemLink

Updated Oct 27, 2022

Reported In

Software

  • SystemLink
  • SystemLink Test Module

Issue Details

I'm trying to generate my reports from the Test Module Service in SystemLink Server. When I click 'Generate Report', I get the following error:
 
syserror.png


Exception: PapermillExecutionError: --------------------------------------------------------------------------- Exception encountered at "In [216]": --------------------------------------------------------------------------- SSLCertVerificationError Traceback (most recent call last) C:\Program Files\National Instruments\Shared\Skyline\Python\3.7\lib\site-packages\aiohttp\connector.py in _wrap_create_connection(self, req, timeout, client_error, *args, **kwargs) 923 Tuple[asyncio.Transport, ResponseHandler], --> 924 await self._loop.create_connection(*args, **kwargs)) 925 except cert_errors as exc: C:\Program Files\National Instruments\Shared\Skyline\Python\3.7\lib\asyncio\base_events.py in create_connection(self, protocol_factory, host, port, ssl, family, proto, flags, sock, local_addr, server_hostname, ssl_handshake_timeout) 980 sock, protocol_factory, ssl, server_hostname, --> 981 ssl_handshake_timeout=ssl_handshake_timeout) 982 ..... C:\Program Files\National Instruments\Shared\Skyline\Python\3.7\lib\site-packages\aiohttp\connector.py in _wrap_create_connection(self, req, timeout, client_error, *args, **kwargs) 925 except cert_errors as exc: 926 raise ClientConnectorCertificateError( --> 927 req.connection_key, exc) from exc 928 except ssl_errors as exc: 929 raise ClientConnectorSSLError(req.connection_key, exc) from exc ClientConnectorCertificateError: Cannot connect to host testserver.ni.com:9090 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1076)')]

How can I fix this issue and remove this error from my system?

Solution

If you are getting this message, it means that you have an invalid or expired certificate. In order to fix this issue, please use one of the different approaches mentioned in this article to generate a valid certificate signing request (CSR).

After this, please restart the NI SystemLink Services using the NI SystemLink Server Configuration tool to reflect the changes. Here is a reference:
 
SLrest.png


After following these steps, users should be able to generate the reports with no issues.