Generating a Self Signed Certificate and Keystore And TrustStore

keytool -genkey -alias mykey -keyalg RSA -keysize 2048 -sigalg SHA256withRSA -validity 365 -keypass password-keystore Keystore.jks -storepass password
keytool  -export -alias mykey -file root.cer -keystore Keystore.jks -storepass password
keytool -import -alias mykey -file root.cer -keystore Trustore.jks -storepass password

Comments

Popular posts from this blog

'jasypt.encryptor.password' or one of ['jasypt.encryptor.privateKeyString', 'jasypt.encryptor.privateKeyLocation'] must be provided for Password-based or Asymmetric encryption

Installing OpenCv 3.0 and Javacv on Raspberry Pi

Couldn't store job: Unable to serialize JobDataMap for insertion into database because the value of property 'jobLauncher' is not serializable