Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

"Error: CERT_HAS_EXPIRED" error message within DTP Server

Options
Billy McMullin
Billy McMullin Posts: 64 admin

This issue was encountered while working with DTP Server version 5.1.2
If the following message appears in the Node.exe screen on start up:

Error getting project list from DTP: localhost { [Error: CERT_HAS_EXPIRED]
cause:
{ [Error: CERT_HAS_EXPIRED]
request:
{ domain: null,
_events: [Object],
_maxListeners: 10,
options: [Object] } },
isOperational: true,
request:
{ domain: null,
_events: { error: [Function] },
_maxListeners: 10,
options:
{ host: 'localhost',
port: '8443',
path: '/grs/api/v1/projects',
auth: 'admin:admin',
method: 'GET' } } }

The solution is to generate a self-signed certificate and install it to the Tomcat server inside DTP. The reason for this is that the REST API in DTP is only available over HTTPS. If the above does not resolve the behavior then write the following line in the console before you run the startup.bat file:

    set NODE_TLS_REJECT_UNAUTHORIZED = "0"

That will allow Policy Center to trust your self-signed certificate.

References:
DTP User's Guide: Running Development Testing Platform Under SSL
How-To for Tomcat: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html