Skip to content

Plugin reports expired cert when using lets encrypt [BUG] #223

@awoodobvio

Description

@awoodobvio

Describe the bug
Attempting to use the plugin with our hosted version of the IQ server results in an error about an expired certificate and thus no scan results show.

To Reproduce
Steps to reproduce the behavior:

  1. Just run a scan against our server.

Expected behavior
The server is accepted since the certificate is not expired or invalid.

Screenshots
Log Information:
{"startTime":"2021-12-03T15:38:58.185Z","categoryName":"sonatypeIQ","data":["Nexus IQ extension failure",{"message":"request to https://iq.ops.svcdv.com/api/v2/applications?publicId= failed, reason: certificate has expired","type":"system","errno":"CERT_HAS_EXPIRED","code":"CERT_HAS_EXPIRED"}],"level":{"level":40000,"levelStr":"ERROR","colour":"red"},"context":{},"pid":23860},

Verification that cert is valid:
https://www.ssllabs.com/ssltest/analyze.html?d=iq.ops.svcdv.com&hideResults=on&latest

Desktop (please complete the following information):

  • OS: Windows 10
  • NodeJS Version: 12.22.7
  • VS Code Version: 1.62.3 (user setup)
  • Version of Extension: 1.2.0

Additional context

cc @bhamail / @DarthHater

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions