Generate doorkeeper file