Create Self-Signed Certificate with Specific Hostname for Evaluations
How to create a self-signed certificate with a specific hostname for evaluations, when configuring SSL for Knox.
How to create a self-signed certificate with a specific hostname for evaluations, when configuring SSL for Knox.
$gateway-hostname
is the FQDN of the
Knox Gateway: cd $gateway bin/knoxcli.cmd create-cert --hostname
$gateway-hostname
.keytool -export -alias gateway-identity
-rfc -file $certificate_path -keystore $gateway
/data/security/keystores/gateway.jks
.Note | |
---|---|
cURL option accepts certificates in PEM format only. |
cd $gateway bin/gateway.sh stop bin/gateway.sh
start
.curl --cacert $certificate_path -u $username : $password https://
$gateway-hostname : $gateway_port /gateway/ $cluster_name
/webhdfs/v1?op=GETHOMEDIRECTORY
.