You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by Kevin Minder <ke...@hortonworks.com> on 2014/03/07 18:05:59 UTC
Tip for extracting self self signed cert for use with curl
keytool -exportcert -rfc -alias gateway-identity -keystore
data/security/keystores/gateway.jks -rfc -file gateway.pem
# You can either provide the master password when prompted or just hit
return and ignore the resulting warning.
curl -u guest:guest-password --cacert gateway.pem
https://localhost:8443/gateway/sandbox/webhdfs/v1/?op=LISTSTATUS
# Note the -k is not required.
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.