The quotes in your command seem to be the issue:
sudo keytool -import -keystore "cacerts" -file "/.../selfsign.crt" ...
The keystore cacerts
, as well as the file
shouldn't be in between quotes.
You already execute it on the right path (jre/lib/security), so try this:
sudo keytool -import -keystore cacerts -file /.../selfsign.crt -alias rapidssl
An example of the keytool command:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…