Keystore generated with: keytool -genseckey -alias mackey -keyalg hmacSHA1 -keysize 128 -keystore mykeystore.jceks -storetype jceks
Password: password
Then converted into PKCS12 format: keytool -importkeystore -srckeystore mykeystore.jceks -destkeystore mykeystore.pkcs12 -deststoretype pkcs12
Compile:
javac -cp "../bcprov-jdk18on-172.jar:../bcprov-ext-jdk18on-172.jar:." *.java
Run:
java -cp "../bcprov-jdk18on-172.jar:../bcprov-ext-jdk18on-172.jar:." Box ./movies/monsters.dat.enc localhost 6789
Compile:
javac -cp "../bcprov-jdk18on-172.jar:../bcprov-ext-jdk18on-172.jar:." *.java
Run:
java -cp "../bcprov-jdk18on-172.jar:../bcprov-ext-jdk18on-172.jar:." StreamServer 6789
openssl genrsa -out RootCA.pem 4096
openssl req -new -x509 -days 1500 -key RootCA.pem -out RootCA.crt
Look at scripts