openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

wsk command error after Mac installation

Open houshengbo opened this issue 9 years ago • 12 comments

This happened lately when I install openwhisk on mac, based on the instruction at https://github.com/openwhisk/openwhisk/blob/master/tools/macos/README.md. I keep on receiving the following error message when I run any wsk command: Get https://192.168.99.100/api/v1/namespaces: x509: cannot validate certificate for 192.168.99.100 because it doesn't contain any IP SANs I tried to run the scripts ./tools/macos/tweak-dockermachine.sh and ./tools/macos/tweak-dockerhost.sh, but they did not resolve it.

houshengbo avatar Jan 11 '17 22:01 houshengbo

Are you passing -i as in wsk -i for insecure connection?

rabbah avatar Jan 11 '17 22:01 rabbah

No, I directly use wsk. Should that behave this way without -i?

houshengbo avatar Jan 12 '17 02:01 houshengbo

Yes. Your local certificate is not trusted if you used the one generated by openwhisk.

rabbah avatar Jan 12 '17 02:01 rabbah

Even if it were trusted you can't create certs for IPs. So the part doesn't contain any IP SANs alludes to that. So in any case you have to use -i for dev envs.

domdom82 avatar Jan 12 '17 08:01 domdom82

@csantanapr I think that should already be documented, right?

domdom82 avatar Jan 12 '17 08:01 domdom82

Don't think is documented for mac use case.

I know it's documented and already handle for Vagrant as the wsk in the path points to a wrapper that already includes the -i

csantanapr avatar Jan 21 '17 15:01 csantanapr

The documentation for how to use the CLI or quirks like shouldn't be tied to Vagrant. Is this a better place for it https://github.com/openwhisk/openwhisk/tree/master/tools/cli?

(More generally there are other bits of the Vagrant doc that should be pulled out, like these two sections: SSL certificate configuration and Adding OpenWhisk users.)

rabbah avatar Jan 21 '17 15:01 rabbah

I was not implying that this was covered by Vagrant already.

Was pointing out that mac points to the general setup CLI and that section doesn't mentioned the insecure (-i) yes that the place to documented for all use cases

csantanapr avatar Jan 21 '17 16:01 csantanapr

As always I'm more than happy to review and merge if someone wants to submit a PR.

This can be tag with a label "easy for noob" The type of issues that are good for first time contributors or folks trying to get involved

csantanapr avatar Jan 21 '17 16:01 csantanapr

Cross linking for future reference https://github.com/openwhisk/openwhisk/issues/1032. Partly related.

rabbah avatar Jan 21 '17 16:01 rabbah

Now that top level CLI doc exists, should document -i there https://github.com/openwhisk/openwhisk/blob/master/docs/cli.md @romankhar FYI.

rabbah avatar Feb 24 '17 22:02 rabbah

I think this issue can be closed as of: https://github.com/apache/incubator-openwhisk/commit/af6b00306f5060cf6abfca2a09ab91c482e8cc1a

lolstarz avatar May 26 '17 16:05 lolstarz