Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

ssh private key generate throgh root access

ssh private key generate throgh root access

New Contributor

hello..

 

i have seen the CDH documentation for configuration of certificate where they are saying to generate the private key from JAVA Keytool but i can also create the private key from root access in server. so, both key will be same or different?

1 REPLY 1

Re: ssh private key generate throgh root access

Master Guru
The Java provided 'keytool' utility helps you generate a certificate pair and also store it into a JavaKeyStore (JKS) container format which the JVMs will expect it to be in. This is one reason why the documentation suggests to use it, as it reduces steps.

You can certainly generate your cert. pair without using Java's 'keytool' utility (such as via openssl commands, etc.), and just use the utility to copy the existing certificates into a JKS container format file for JVMs to use. This is equally acceptable too.

The 'root access' part of your question is a little confusing, so perhaps I've not gotten your problem right. You do not normally require root level privileges to create a certificate (although you may need it to alter existing, OS-supplied stores).
Don't have an account?
Coming from Hortonworks? Activate your account here