Samigo Load Test
6 sample files that will be used for the load testing:
1. Signing the audio applet
1. assuming you have deployed sakai in tomcat already, and samigo.war has expanded in tomcat/webapps, first shutdown tomcat
2. signing the applet using your certificate.
> cd tomcat/webapps/samigo/applets
> jarsigner -keystore yourKeystore -storepass yourPassword sakai-samigo-audio-dev.jar yourAlias
> jarsigner -verify sakai-samigo-audio-dev.jar
3. restart tomcat
Now you should be able to load the applet and record your answers for an audio recording question.
4. You will need to repeat step 1-3 for all your tomcat servers.
2. Signing applet during maven build.
There is a way to sign this applet when you run "maven sakai". It involves modifying the sam/samigo-audio/maven.xml and add this postGoal. This will allow the jar to be signed during compilation/build and the signed jar will be deployed in tomcat. You won't need to sign individual jars in all servers.
<postGoal name="jar:jar">
<ant:signjar
alias="youralias"
keystore="/yourfolder/your.keystore"
storepass="yourpassword">
<ant:fileset dir="target">
<ant:include name="*.jar" />
</ant:fileset>
</ant:signjar>
</postGoal>
3 here is an example on creating a self-signed certificate and use it to sign your applet:
1. create a self-signed ketstore
keytool -genkey -keyalg RSA -keystore ~/daisyf/applet-keystore/audio_applet_keystore -alias audioApplet -keypass mypassword -validity 3650
I used these value when prompted "cn=Daisy Flemming, ou=SUL / ACOMP, o=Stanford University, l=Stanford, st=CA, c=US"
2. create self-signed certificate
keytool -selfcert -keystore ~/daisyf/applet-keystore/audio_applet_keystore -alias audioApplet -dname "cn=Daisy Flemming, ou=SUL / ACOMP, o=Stanford University, l=Stanford, st=CA, c=US" -validity 3650
e. signing applet
cd ~/nightly/sakai2.2-oracle/tomcat/webapps/samigo/applets
jarsigner -keystore ~/daisyf/applet-keystore/audio_applet_keystore -storepass mypassword sakai-samigo-audio-dev.jar audioApplet
jarsigner -verify sakai-samigo-audio-dev.jar