New integration causing error "certificate has expired"

Hello,

I am doing my first integration. I have followed the instructions provided in “Build your first Pipedrive App” however I keep getting an error “InternalOAuthError: Failed to obtain access token” which after debugging I see to be caused due to the underlying

Failed to obtain access token { Error: certificate has expired
    at TLSSocket.<anonymous> (_tls_wrap.js:1116:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:643:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38) code: 'CERT_HAS_EXPIRED' }

Any idea what is wrong?