Skip to content

Authentication issues -- API key is not working #7967

@lwoodring

Description

@lwoodring

I have been using this tool for quite some time & it has been very helpful.

I just started having issues with Authentication though. I specify an API key to the NVD database, in Maven:
<nvdApiKey>#######</nvdApiKey>

I am using the current release: 12.1.5
and receiving this error:

One or more exceptions occurred during dependency-check analysis: One or more exceptions occurred during analysis:
[ERROR] InitializationException: Error initializing OSS Index analyzer due to missing user/password credentials. Authentication is now required: https://ossindex.sonatype.org/doc/auth-required
  1. Thinking that maybe my API key had expired (I don't know if there is an expiration, they don't seem to mention it),
    I generated a new one at: https://nvd.nist.gov/developers/request-an-api-key
    but received the same error message.

  2. The error message itself points to a different URL than the NVD one (sonatype) for generating an API key, so I also registered an account & created an API key there. Same error message.

  3. I also tried just using the username/password from OSS/Sonatype registration (just these lines & also w/nvdApiKey):

<nvdUser>aaaaa</nvdUser>
<nvdPassword>bbbbbbbbbbb</nvdPassword>

also received the same error message.

Would you please point me in the right direction to solve this? Which place should I be using to generate an API key?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions