What ended up being the most difficult issue to solve was as follows: If your PIV has a line that reads
and you try to set kEnableSecureConnection=1 - bad things happen.
When you try to initiate the PIV, the CPU on the workstation goes to 100% and a window never opens. You have to
Take out the line that begins kCommandStackSize, and you should connect fine - or at least get a meaningful error if not everything is seutp.
Good Luck to any who try this!