Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3284

Missing -k option in example curl commands under Pre Service instantiation Operations

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      Getting SSL error with "SSL certificate problem: unable to get local issuer certificate" while running some of the example curl commads for few operations under Pre Service instantiation Operations section.

      Solution:
      To fix this issue, provide -k option in the curl command to avoid SSL certificate issue for those operations.

      One of the Failure request:

      curl -X PUT \
      >   https://aai.api.sparky.simpledemo.onap.org:30233/aai/v13/business/owning-entities/owning-entity/8874891f-5120-4b98-b452-46284513958d \
      >   -H 'Accept: application/json' \
      >   -H 'Authorization: Basic QUFJOkFBSQ==' \
      >   -H 'Content-Type: application/json' \
      >   -H 'X-FromAppId: AAI' \
      >   -H 'X-TransactionId: get_aai_subscr' \
      >   -H 'cache-control: no-cache' \
      >   -d '{
      >     "owning-entity-name": "OE-Generic",
      >     "owning-entity-id": "8874891f-5120-4b98-b452-46284513958d"
      > }'
      curl: (60) SSL certificate problem: unable to get local issuer certificate
      More details here: https://curl.haxx.se/docs/sslcerts.html
      
      curl failed to verify the legitimacy of the server and therefore could not
      establish a secure connection to it. To learn more about this situation and
      how to fix it, please visit the web page mentioned above.
       

      The above command output with -k option:

      curl -k -X PUT   https://aai.api.sparky.simpledemo.onap.org:30233/aai/v13/business/owning-entities/owning-entity/8874891f-5120-4b98-b452-46284513958d   -H 'Accept: application/json'   -H 'Authorization: Basic QUFJOkFBSQ=='   -H 'Content-Type: application/json'   -H 'X-FromAppId: AAI'   -H 'X-TransactionId: get_aai_subscr'   -H 'cache-control: no-cache'   -d '{
          "owning-entity-name": "OE-Generic",
          "owning-entity-id": "8874891f-5120-4b98-b452-46284513958d"
      }'
      

       

            ramagp ramagp
            ramagp ramagp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: