You thought correctly of creating a CSR. You will use something like this:
$ keytool -certreq -alias myalias -file myalias.csr -keystore keystore
to create a CSR that contains:
- your public key (extracted from a self-signed certificate)
- (.. , )
. CA :
- subject = DN ( CSR, , )
- issuer = CA DN
- = CSR
, :
$ keytool -import -alias myalias -keystore keystore -file myalias.crt
, , ; :
$ keytool -import -trustcacerts -alias intermediate -file intermediate.crt -keystore keystore
: keytool ( "" , , ):
keytool "" , "" . , .
(. -genkey), - . , () , (, ). , -genkey / , .
, (CSR) (. -certreq) (CA), (. "" ) . (), , . - , CA.