In accordance with a preferred embodiment of the invention, the sterilization is effected by heating the container containing the liquid to the sterilization temperature, while enclosed in a mold, as for example of glass or metal, corresponding to the container shape.