SHARE
TWEET

Untitled

a guest Oct 21st, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.
  2. java -Djava.security.properties==./java.sec -cp lib/jade.jar jade.Boot -nomtp -icps jade.imtp.leap.JICP.JICPPeer -gui -name main -container-name main -port 5656 -local-port 5656
  3. java -Djava.security.properties==./java.sec -cp lib/jade.jar jade.Boot -nomtp -icps jade.imtp.leap.JICP.JICPPeer -container -container-name Maciej1 -port 5656 -local-port 4646
  4.  
  5. 2.
  6. keytool -genkey -alias jade-main -keyalg RSA -keystore keystore0 -keypass changeit \
  7. -storepass changeit -dname "CN=Giada , OU=JADE , O=FooBar Ltd , L=Naples , ST=na,C=IT";\
  8. keytool -genkey -alias jade-container1 -keyalg RSA -keystore keystore1 -keypass changeit \
  9. -storepass changeit -dname "CN=Giada , OU=JADE , O=FooBar Ltd , L=Naples , ST=na,C=IT";\
  10. keytool -genkey -alias jade-container2 -keyalg RSA -keystore keystore2 -keypass changeit \
  11. -storepass changeit -dname "CN=Giada , OU=JADE , O=FooBar Ltd , L=Naples , ST=na,C=IT";
  12.  
  13. keytool -export -keystore keystore0 -storepass changeit -alias jade-main -rfc -file main.cer;\
  14. keytool -export -keystore keystore1 -storepass changeit -alias jade-container1 -rfc -file container1.cer;\
  15. keytool -export -keystore keystore2 -storepass changeit -alias jade-container2 -rfc -file container2.cer
  16.  
  17. keytool -import -keystore truststore0 -storepass changeit -alias jade-container1 -file container1.cer -noprompt;\
  18. keytool -import -keystore truststore0 -storepass changeit -alias jade-container2 -file container2.cer -noprompt;\
  19. keytool -import -keystore truststore1 -storepass changeit -alias jade-main -file main.cer -noprompt;\
  20. keytool -import -keystore truststore1 -storepass changeit -alias jade-container2 -file container2.cer -noprompt;\
  21. keytool -import -keystore truststore2 -storepass changeit -alias jade-container1 -file container1.cer -noprompt;\
  22. keytool -import -keystore truststore2 -storepass changeit -alias jade-main -file main.cer -noprompt
  23.  
  24.  
  25. 3.
  26. java -Djava.security.properties==./java.sec -cp lib/jade.jar jade.Boot -nomtp -icps jade.imtp.leap.JICP.JICPPeer -port 5656 -local-port 5656 -gui -name main -container-name main -services jase.core.replication.MainReplicationService\;\jade.core.replication.AddressNotificationService
  27.  
  28. java -Djava.security.properties==./java.sec -cp lib/jade.jar jade.Boot -nomtp -icps jade.imtp.leap.JICP.JICPPeer -port 5656 -local-port 4646 -backupmain -container-name backupmain -services jase.core.replication.MainReplicationService\;\jade.core.replication.AddressNotificationService
  29.  
  30. java -Djava.security.properties==./java.sec -cp lib/jade.jar jade.Boot -nomtp -icps jade.imtp.leap.JICP.JICPPeer -port 5656 -local-port 3636 -container -container-name Maciej1 -services jase.core.replication.MainReplicationService\;\jade.core.replication.AddressNotificationService
  31.  
  32.  
  33. Zadanie 4.
  34. keytool -genkey -alias jade-main_4 -keyalg RSA -keystore keystore0_4 -keypass changeit
  35. -storepass changeit -dname "CN=Giada, OU=JADE, O=FooBar Ltd, L=Naples, st=na,C=IT";
  36. keytool -genkey -alias jade-backup_4 -keyalg RSA -keystore keystore1_4 -keypass changeit -storepass changeit -dname "CN=Giada, OU=JADE, O=FooBar Ltd, L=Naples, st=na,C=IT";
  37. keytool -genkey -alias jade-container1_4 -keyalg RSA -keystore keystore2_4 -keypass changeit
  38. -storepass changeit -dname "CN=Giada, OU=JADE, O=FooBar Ltd, L=Naples, st=na,C=IT";
  39.  
  40. keytool -export -keystore keystore0 -storepass changeit -alias jade-main -file main.cer;
  41. keytool -export -keystore keystore1 -storepass changeit -alias jade-container1 -file container1.cer;
  42. keytool -export -keystore keystore2 -storepass changeit -alias jade-container2 -file container2.cer
  43.  
  44. keytool -import -keystore truststore0 -storepass changeit -alias jade-container1 -file container1.cer -noprompt;
  45. keytool -import -keystore truststore0 -storepass changeit -alias jade-container2 -file container2.cer -noprompt;
  46. keytool -import -keystore truststore1 -storepass changeit -alias jade-main -file main.cer -noprompt;
  47. keytool -import -keystore truststore1 -storepass changeit -alias jade-container2 -file container2.cer -noprompt;
  48. keytool -import -keystore truststore2 -storepass changeit -alias jade-container1 -file container1.cer -noprompt;
  49. keytool -import -keystore truststore2 -storepass changeit -alias jade-main -file main.cer -noprompt;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top