Thanks Aleksandras
Thats a good script. I hope it will go live somewhere useful.
So as far as I can tell the expected behaviour is to use your glassfish server keystore as the server keystore. That explains my problem and should be stated clearer in the docs/blogs that address this issue. I'm not sure it completely makes sense in the context of multiple services running on one server, I would've thought having separate server keystores would be ideal.
[Message sent by forum member 'waynetg' (waynetg)]
http://forums.java.net/jive/thread.jspa?messageID=347560