assuming you have admin GUI up and running follow this link:
http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-v3-and-ssl
DO request a valid certificate from a known CA and install the cert to Glassfish so ssl-connector will see the cert
DO NOT: disable the regular http listener
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> To: users_at_glassfish.java.net
> Subject: Setting Up SSH For A Single Website On Glassfish 3.1
> From: forums_at_java.net
> Date: Mon, 23 May 2011 16:06:10 -0500
>
> How do I setup SSH on Glassfish 3.1 to only work for a single website? I have
> gone through some tutorials with setting up SSH with Glassfish but none of
> them are geared towards doing it for a specific website only. After testing
> SSH with Glassfish via Firefox 4 the web browser always displays the "The
> connection was interrupted" message. What causes that message to appear in
> Firefox?
>
> At the moment the website is being hosted on a local PC for testing purposes.
> There is a client (website) that has been developed to access the REST
> webservices being hosted on Glassfish. Two of the webservices handle the
> login/logout of users for the client. Below is a screenshot of how SSH has
> been setup in Glassfish.
>
>
> Below is the error message that was encountered during the testing of SSH
> with Glassfish.
>
>
> Both the keystore and certificate files have been included in domain1's
> config directory. What is missing in terms of SSH configuration with
> Glassfish?
>
>
> --
>
> [Message sent by forum member 'digi_pixel']
>
> View Post: http://forums.java.net/node/805319
>
>