Accessing endpoints #3084
-
So far I've managed to run a Javascript bundle in an enclave, but I now am running into the issue with accessing these. I am using the test bundle js-app-bundle to see whether I can manage to send requests over TLS using curl, following the documentation. I've run started one single node using
In a second terminal, I attempted to access the /compute endpoint using This however ended up giving me a SSL certificate error. I wasn't exactly sure what could have possibly caused this, so I ended up shutting the node down, emptying the auth_policies field in app.json hopes I could invoke the endpoint regardless, unfortunately this resulted in thesame issue.
I'd figure that this is what the scurl.sh wrapper is used for, this however gives me exactly thesame issue running What have I done wrong here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@mAlyanak: An The common folder populated by the
So you will need to use those certs to communicate, either by passing the full path:
or changing the working directory:
or copying those files elsewhere, and using the appropriate path. If you pass a
|
Beta Was this translation helpful? Give feedback.
@mAlyanak: An
unable to get local issuer certificate
error suggests curl is using anetworkcert.pem
file, but not the correct one for the current service. Are you in the correct workspace directory for the newly started service, or have you copied those certs to the current working directory?The common folder populated by the
sandbox.sh
script is listed in the output:So you will need to use those certs to communicate, either by passing the full path: