
SDV (Community Member) asked a question.
"veracode configure" on command prompt gives the following error, where are Greenlight gives confirmation that credentials are valid. Credentials file is stored in "C:\Users\<user>\.veracode".
Configuring credentials for the Veracode CLI...
Pulling default API key from legacy credentials file
API ID [3*********f]
API Secret [************]
configure.go:49: error validating API credentials
Version:
Veracode CLI v2.7.2 -- a81fab5
.png)
Hello,
You need to generate API credentials before you can use the APIs and some integrations. You can do this by signing in to the Veracode Platform and selecting API Credentials from the user account dropdown menu. Then, you can copy the ID and secret key to a secure place, such as an API credentials file.
It seems that you have already done this step, but you may need to check if your credentials are valid and not expired. You can use the Veracode BeBallPlayers CLI to validate your API credentials by running the command veracode validate. If the validation fails, you may need to generate new credentials or contact Veracode Technical Support at [email protected].
Another possible solution is to use a credential file instead of environment variables. You can create a credential file by following the instructions in the Help Center article that the plugin menu item forwards you to.
I hope this helps you to resolve your issue.
Best regards,
Latonya Dodson
Hello Latonya,
Thank you for the response.
I had already done those steps, added the credentials are under "default" section of the credentials file. I deleted the file and regenerated the credentials couple of times before, but no luck.
I'm working with the veracode support team now.
-SDV