此内容没有您所选择的语言版本。
B.3. Create a Private/Public Key Pair with Keytool
Procedure B.1. Create a Private/Public Key Pair with Keytool
- Run the
keytool -genkey -alias ALIAS -keyalg ALGORITHM -validity DAYS -keystore server.keystore -storetype TYPE
command:keytool -genkey -alias teiid -keyalg RSA -validity 365 -keystore server.keystore -storetype JKS
keytool -genkey -alias teiid -keyalg RSA -validity 365 -keystore server.keystore -storetype JKS
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If the specified keystore already exists, enter the existing password for that keystore, otherwise enter a new password:
Enter keystore password: <password>
Enter keystore password: <password>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Answer the following questions when prompted:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter
yes
to confirm the provided information is correct:Is CN=<userâÂÂs name>, OU=<department name>, O="<company name>", L=<city name>, ST=<state name>, C=<country name> correct? [no]: yes
Is CN=<userâÂÂs name>, OU=<department name>, O="<company name>", L=<city name>, ST=<state name>, C=<country name> correct? [no]: yes
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter your desired keystore password:
Enter key password for <server> (Return if same as keystore password)
Enter key password for <server> (Return if same as keystore password)
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Result
The server.keystore
file contains the newly generated public and private key pair.