A convenient one-pot synthesis of primary aliphatic N-nitramines, which includes the nitration of available N,N′-dialkyloxalamides or N-alkylcarbamates with dinitrogen pentoxide in the 1,1,1,2-tetrafluoroethane media followed by ammonolysis of intermediate N-nitroamides in the same solvent has been developed. The method is environmentally safe, and affords target N-nitramines in up to 94% overall yield.