[Tex/LaTex] MIKTex 2.9.6161 ssl error when trying to update

miktex

I just installed MIKTex 6161 usng the basic-miktex-2.9.6161-x64.exe package.
When I got to the start menu and select update or update admin, I get an ssl connection error:

Output from the log file is:

2017-01-10 10:07:45,781-0700 INFO Update – starting: Update Wizard (MiKTeX 2.9.6100 64-bit)
2017-01-10 10:08:11,594-0700 INFO FileCopyPage –
2017-01-10 10:08:11,595-0700 INFO FileCopyPage – Error: SSL connect error
2017-01-10 10:36:59,681-0700 INFO Update – starting: Update Wizard (MiKTeX 2.9.6100 64-bit)
2017-01-10 10:37:51,888-0700 INFO Update – starting: Update Wizard (MiKTeX 2.9.6100 64-bit)
2017-01-10 10:38:05,371-0700 INFO FileCopyPage –
2017-01-10 10:38:05,372-0700 INFO FileCopyPage – Error: SSL connect error

Best Answer

There is a long bug report regarding this error: https://sourceforge.net/p/miktex/bugs/2548/.

A work-around is to set an environment variable

older miktex:

MIKTEX_MPM_REMOTESERVICE6100=multiplexor  

or newer miktex:

MIKTEX_MPM_REMOTESERVICE6210=multiplexor

(in doubt set both ...)

and then to run the update manager (admin) again to get correct binaries.

After the update it should be possible to remove the environment variables (exception: windows XP which needs it always.)