I'm not sure how they work as well, but thought that the DI might be able to pull a string or two and have the ships registry transfered to civilian usage as well as the name.
Commander Austin Harris, First Officer, Deep Space Nine (by FltCpt. Bossco)
8.01 - Darkest Before Dawn
(Chapter 8 added, 12/09/2015)