Actually according to the NHL rules a player can wear the goalie equipment if both are injured, I seem to remember it being Rivet if it had to come down to that in the past, who is it now?
5.3 Goalkeeper - Each team shall be allowed one goalkeeper on the ice at one time. The goalkeeper may be removed and another skater substituted. Such substitute shall not be permitted the privileges of the goalkeeper.
Each team shall have on its bench, or on a chair immediately beside the bench, a substitute goalkeeper who shall, at all times, be fully dressed and equipped ready to play.
Except when both goalkeepers are incapacitated, no skater in the playing roster in that game shall be permitted to wear the equipment of the goalkeeper.
In regular League and Playoff games, if both listed goalkeepers are incapacitated, that team shall be entitled to dress and play any available goalkeeper who is eligible. This goalkeeper is eligible to sit on the player’s bench, in uniform. In the event that the two regular goalkeepers are injured in quick succession, the third goalkeeper shall be provided with a reasonable amount of time to get dressed, in addition to a two-minute warm-up (except when he enters the game to defend against a penalty shot).
The recalling of minor league goalkeepers (as a result of suspensions incurred to both goalkeepers under Rule 11 – Goalkeeper’s Equipment) to ensure a complete lineup for subsequent games shall be deemed to be an emergency recall and subject to the twenty-three (23) man roster limitations.
Some teams keep the goalie in the dugout on the other side of the ice, technically that's illegal.