On Mon, 8 Nov 2004, Mathias Sundman wrote:

I got an email from an OpenVPN GUI user today saying that it didn't work together with passphrase protected keys in the MS certificate store.

I had no problem reproducing it. I'm using OpenVPN 2.0-beta16, and all version of OpenVPN GUI from beta1 to beta22 fails.

What happends is that OpenVPN "hangs" when windows is supposed to show the dialog asking the user to enter his passphrase.

If openvpn is run from cmd-line it works fine, and the passphrase dialog is showed, and even Michael's .NET based GUI works!

But not mine ;-( For some reason the dialog is just not showed, so obviously openvpn can't continue.

Why do one always find the problem yourself the minute after posting to a list?!

The problem was in the way I called CreateProcess(). I used the dwFlags = STARTF_USESHOWWINDOW and wShowWindow = SW_HIDE in the start_info struct.

This was no-no! It seemed to suppress also windows dialogs!

If I instead used CREATE_NO_WINDOW as dwCreationFlags in the call to CreateProcess(), then the openvpn console window was still hidden, but Windows still shows the certficate store dialogs correctly.

Thanks to the list for just existing ;-)

There will soon be a new release available of OpenVPN GUI with the fix included...

/Mathias

Reply via email to