From: <glassfish_at_javadesktop.org>
Date: Sun, 10 May 2009 16:45:05 PDT
Duh on me. That is what you said in your post.
I used your script to accomplish the same thing in Windows and it is now working.
You are correct that there is a limitation that the keystore and key passwords must be the same or Glassfish will fail to start. Here is a blog that explains the situation and how to change the password.