Servidor de Office Online: lo sentimos, hubo un problema y no podemos abrir este documento.
Para un proyecto actual estoy trabajando con Exchange 2019 y para OWA queremos implementar Office Online Server. Hice esto en el pasado y escribí en un blog sobre ello (Instalar Office Online Server 2016), así que pensé que no debería ser gran cosa.
Instalé Windows 2016, instalé el software requerido previamente, configuré un certificado SSL, instalé Office Online Server y creé una nueva granja de Office Web Apps.
Después de probar https://fqdn/hosting/discovery y configurar la configuración de la organización, todo debe estar bien.
Al abrir un archivo adjunto en OWA veo el entorno OOS, intenta abrir un documento y luego genera este error:
“Lo sentimos, hubo un problema y no podemos abrir este documento. Si esto vuelve a suceder, intente abrir el documento en Microsoft Word. "
Al abrir un archivo adjunto de Excel, aparece el siguiente mensaje de error:
“No se puede abrir el archivo. No pudimos encontrar el archivo que buscaba. Es posible que el archivo haya sido renombrado, movido o eliminado. "
Sé que Office Online Server es sensible a los certificados SSL, pero este era un certificado Digicert normal. La resolución de nombres también estuvo bien. Pero la verificación https://fqdn/op/generate.aspx también falló con el siguiente error (bastante inútil):
"Error del Servidor. Lo lamentamos. Se ha producido un error. Hemos registrado el error para el administrador del servidor. "
Desafortunadamente, no hay nada útil en el registro de eventos ni en el registro ULS en el servidor de Office Web Apps. Pregunté a mis colegas, pero solo tenían experiencia con Exchange 2016 y OOS.
Después de dos días de búsqueda, jugueteando con el servidor, verificando las versiones de .NET (Windows 2016 viene con una versión más nueva de .NET que la requerida por Office Online Server), reconstruyendo Office Online Server varias veces me di cuenta de que podría ser un problema de TLS 1.2. . Exchange 2019 usa TLS 1.2 solo de forma predeterminada, mientras que Exchange 2016 puede usar varias versiones de TLS.
Entonces, en el servidor Windows 2016 con OOS, habilité la criptografía sólida en .NET y deshabilité las versiones anteriores de TLS en Windows para solucionar el problema.
Para habilitar una criptografía sólida en .NET Framework, agregue la siguiente clave de registro:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319]
"SchUseStrongCrypto"=dword:00000001
Para deshabilitar versiones anteriores o TLS, agregue las siguientes claves de registro:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0]
@="DefaultValue"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\PCT 1.0\Server]
@="DefaultValue"
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0]
@="DefaultValue"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server]
@="DefaultValue"
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0]
@="DefaultValue"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server]
@="DefaultValue"
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0]
@="DefaultValue"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server]
@="DefaultValue"
"Enabled"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1]
@="DefaultValue"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server]
@="DefaultValue"
"Enabled"=dword:00000000Después de reiniciar Office Online Server, funcionó como se esperaba.


