Semantic-Release Certificate has expired Error

In our CI/CD, I need to update our release version, so I run a simple command via deploy to semantic-release.

The error returned is that the certificate has expired when it has not. Our SSL certificate expires April 15, 2022.

package.json
@semantic-release/gitlab-config”: “^2.0.0”,
@semantic-release/npm”: “^3.3.1”,
“semantic-release”: “15.5.1”

gitlab-ci.yml
deployPatch:
stage: deploy
environment: production
script:
- npx semantic-release
only:
- master

I receive the following error message on the job:
npm info ok
e[32;1m$ npx semantic-releasee[0;m
[Semantic release]: Running semantic-release version 15.5.1
[Semantic release]: Load plugin “verifyConditions” from @semantic-release/npm in shareable config @semantic-release/gitlab-config
[Semantic release]: Load plugin “verifyConditions” from @semantic-release/gitlab in shareable config @semantic-release/gitlab-config
[Semantic release]: Load plugin “analyzeCommits” from @semantic-release/commit-analyzer
[Semantic release]: Load plugin “generateNotes” from @semantic-release/release-notes-generator
[Semantic release]: Load plugin “prepare” from @semantic-release/npm in shareable config @semantic-release/gitlab-config
[Semantic release]: Load plugin “publish” from @semantic-release/npm in shareable config @semantic-release/gitlab-config
[Semantic release]: Load plugin “publish” from @semantic-release/gitlab in shareable config @semantic-release/gitlab-config
[Semantic release]: Run automated release from branch master
[Semantic release]: Call plugin verify-conditions
[Semantic release]: Verify authentication for registry https://npm.affordabletours.com/
[Semantic release]: Verify GitLab authentication (https://code.aws.affordabletours.com/api/v4)
[Semantic release]: An error occurred while running semantic-release: { RequestError: certificate has expired
at ClientRequest.req.once.err (/builds/microservices/sequelize-model/node_modules/got/index.js:182:22)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: ‘RequestError’,
code: ‘CERT_HAS_EXPIRED’,
host: ‘code.aws.affordabletours.com’,
hostname: ‘code.aws.affordabletours.com’,
method: ‘GET’,
path: ‘/api/v4/projects/microservices%2Fsequelize-model’,
protocol: ‘https:’,
url: ‘https://code.aws.affordabletours.com/api/v4/projects/microservices%2Fsequelize-model’,
pluginName: ‘@semantic-release/gitlab’ }
{ RequestError: certificate has expired
at ClientRequest.req.once.err (/builds/microservices/sequelize-model/node_modules/got/index.js:182:22)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: ‘RequestError’,
code: ‘CERT_HAS_EXPIRED’,
host: ‘code.aws.affordabletours.com’,
hostname: ‘code.aws.affordabletours.com’,
method: ‘GET’,
path: ‘/api/v4/projects/microservices%2Fsequelize-model’,
protocol: ‘https:’,
url: ‘https://code.aws.affordabletours.com/api/v4/projects/microservices%2Fsequelize-model’,
pluginName: ‘@semantic-release/gitlab’ }

@firdos Did you work out how to fix this error? I am having the same problem and can’t work it out.