usnistgov / ACVP-Server

A repository tracking releases of NIST's ACVP server. See www.github.com/usnistgov/ACVP for the protocol.
51 stars 18 forks source link

JSON val parse error (acvp_post_data: 3251) #246

Closed w-olds closed 1 year ago

w-olds commented 1 year ago

environment Demo

testSessionId N/A

vsId N/A

Algorithm registration N/A

Endpoint in which the error is experienced https://demo.acvts.nist.gov/acvp/v1/login POST

Expected behavior Access token is received in JSON response

Additional context

wolds@wolds-dev-u22:~/dev/acvt/libacvp/app$ ./acvp_app --post /acvp/v1/login

Using the following parameters:

    ACV_SERVER:     demo.acvts.nist.gov
    ACV_PORT:       443
    ACV_URI_PREFIX: /acvp/v1/
    ACV_CA_FILE:    /home/wolds/dev/acvt/libacvp/certs/mozzila_trust_anchors.pem
    ACV_CERT_FILE:  /home/wolds/dev/acvt/libacvp/certs/CloudSoftwareGroup_Walt_Olds_Demo.cer
    ACV_KEY_FILE:   /home/wolds/dev/acvt/libacvp/CloudSoftwareGroup_Walt_Olds_Demo.key

***ACVP [STATUS][acvp_login:2723]--> Logging in...
Enter PEM pass phrase:
***ACVP [STATUS][acvp_login:2743]--> Login successful
***ACVP [ERR][acvp_post_data:3251]--> JSON val parse error
abkarcher commented 1 year ago

Hi,

for issues related to libacvp, please open issues here:

https://github.com/cisco/libacvp

This github is for issues related to the server, they cannot assist with libacvp. the --post argument for acvp_app is intended to be used with a file, not an endpoint. libacvp will automatically perform logins when given the right credentials and arguments for running (see acvp_app --help and the readme file).

Andrew

livebe01 commented 1 year ago

Thanks @abkarcher!