Usually, when I need a template for a DB25, DE9, or whatever,
I just dig in the junk box for an old PC-type serial bracket.
You know, from back in the day when the serial ports were
in one of the blank spots for empty card slots, instead of
being on the motherboard itself?
Naturally, I'd prefer a punch myself, but as everyone agrees,
they are kind of pricey. Fortunately, I've never really needed
one that often, that I couldn't deal with using a nibbling tool.
Depending on how you're planning on mounting it, the hole
may or may not need to be perfect.
If you're putting the D-connector BEHIND the panel / chassis,
then you'll want a nice, neat opening.
Although it's not as pretty, you can cut a rectangular opening
with a screw-hole on each side, and mount the flanged portion
of the D-sub on the OUTSIDE of the chassis. If you're careful,
the metal frame of the D-sub will cover up any imperfections
in the size/shape of the opening.
And lastly, the "down and dirty method" is to cut a 3" x 1/2"
rectangular opening, and use one of the afore-mentioned
PC brackets from behind for mounting.
I know. . . not pretty, but sometimes handy when working on a
chassis with existing knock-outs/holes which need covering anyway.
T