mirror of
https://github.com/Febbweiss/logstash-forwarder-java.git
synced 2026-03-04 22:25:39 +00:00
Added HOWTO-KEYSTORE.md
This commit is contained in:
12
HOWTO-KEYSTORE.md
Normal file
12
HOWTO-KEYSTORE.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# How to create a java keystore ?
|
||||||
|
|
||||||
|
## From a .pem file
|
||||||
|
|
||||||
|
If you have your CA certificate stored in a .pem text file, run the following command to create the keystore.jks file :
|
||||||
|
|
||||||
|
keytool -importcert -trustcacerts -file cacert.pem -alias ca -keystore keystore.jks
|
||||||
|
|
||||||
|
To list the contents of the keystore file, run this command :
|
||||||
|
|
||||||
|
keytool -list -v -keystore keystore.jks
|
||||||
|
|
||||||
Reference in New Issue
Block a user