NSS: client certificate not found (nickname not specified)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the below command to connect to paypal sandbox. The command does work and we are able to connect however we are getting an error as stated below. The same error does not appear if I use curl to connect to paypal.com or google.com. Anybody else facing the same issue and has a solution ?
Command:
curl -v https://api.sandbox.paypal.com/v1/oauth2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "ARYQOmhypNwkJh37gkxeqwo56xLOCfyYH0FjEnvA489nbaG1E_eSJ3fdE3i4PzdMj7C7ufzqMHBlHari:ELVN2oqo-XC3mgjQMKJzGUYQ86JLpvZN7DzplBMUU-Tu3gbEsjAEivwRgDlGpEysG1hKdThYQkurNxsp" \
-d "grant_type=client_credentials"
Output:
* About to connect() to api.sandbox.paypal.com port 443 (#0)
* Trying 173.0.82.78...
* Connected to api.sandbox.paypal.com (173.0.82.78) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/ca-trust/source/anchors/paypalapi.pem
CApath: none
* NSS: client certificate not found (nickname not specified)
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* subject: CN=api.sandbox.paypal.com,OU=PayPal Production,O="PayPal, Inc.",L=San Jose,ST=California,C=US
* start date: Jul 27 00:00:00 2020 GMT
* expire date: Aug 01 12:00:00 2022 GMT
* common name: api.sandbox.paypal.com
* issuer: CN=DigiCert SHA2 High Assurance Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
* Server auth using Basic with user 'ARYQOmhypNwkJh37gkxeqwo56xLOCfyYH0FjEnvA489nbaG1E_eSJ3fdE3i4PzdMj7C7ufzqMHBlHari'
> POST /v1/oauth2/token HTTP/1.1
> Authorization: Basic QVJZUU9taHlwTndrSmgzN2dreGVxd281NnhMT0NmeVlIMEZqRW52QTQ4OW5iYUcxRV9lU0ozZmRFM2k0UHpkTWo3Qzd1ZnpxTUhCbEhhcmk6RUxWTjJvcW8tWEMzbWdqUU1LSnpHVVlRODZKTHB2Wk43RHpwbEJNVVUtVHUzZ2JFc2pBRWl2d1JnRGxHcEV5c0cxaEtkVGhZUWt1ck54c3A=
> User-Agent: curl/7.29.0
> Host: api.sandbox.paypal.com
> Accept: application/json
> Accept-Language: en_US
> Content-Length: 29
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 29 out of 29 bytes
< HTTP/1.1 200 OK
< Cache-Control: max-age=0, no-cache, no-store, must-revalidate
< Content-Length: 918
< Content-Type: application/json
< Date: Tue, 15 Sep 2020 12:06:24 GMT
< Paypal-Debug-Id: cdc84e1cd1516
< X-Paypal-Token-Service: IAAS
<
* Connection #0 to host api.sandbox.paypal.com left intact
{"scope":"https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks","access_token":"A21AALxu5wYhYu0XtrWeDFlu4_3re... anchors]#

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- How do I create or renew my API Certificate? in NVP/SOAP APIs
- IPN Simulator | Sandbox IPN issue in Sandbox Environment
- How to get PayPal API Username, Password and Signature information? in NVP/SOAP APIs
- Why IPN notifications suddenly are failing, when before all was working in PayPal Reporting
- select certificate to authenticate yourself to api.paypal.com in REST APIs