Java 키 저장소 도구를 사용하여 키 저장소 생성을 자동화하려고합니다. 내가 사용하는 명령은 다음과 같습니다.
keytool -keystore keystore -alias jetty -genkey -keyalg RSA
그러나이 명령 후에 사용자는 다음과 같이 특정 입력을 입력해야합니다.
Enter keystore password: password
What is your first and last name?
[Unknown]: jetty.mortbay.org
What is the name of your organizational unit?
[Unknown]: Jetty
What is the name of your organization?
[Unknown]: Mort Bay Consulting Pty. Ltd.
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=jetty.mortbay.org, OU=Jetty, O=Mort Bay Consulting Pty. Ltd.,
L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes
Enter key password for <jetty>
(RETURN if same as keystore password): password
사용자가 이러한 값을 입력하는 대신 명령 내에서 또는 스크립트를 통해 사용자 상호 작용없이 이러한 값을 제공 할 수있는 방법이 있습니까?
감사