Share via


SharePoint 2013 OWA - SSL policy errors have been encountered. Error code '0x2'..

Question

Sunday, June 18, 2017 10:27 AM

we are configuring OWA with SharePoint 2013 and we need to allow only https , we have configured owa server as following

we have followed this article http://www.sharepointblog.no/?p=299 but we changed first command to allow only https

New-OfficeWebAppsFarm -InternalURL "https://owa.company.co" -ExternalURL "https://owa.company.co" -CertificateName "OWA-OFFICE-SP" -EditingEnabled -OpenFromURLEnabled

Certificate in OWA server : OWA-OFFICE-SP issued to company.local

CN = *.company.local

OU = IT

O = company

L = City

S = City

C = US

Certificate in SharePoint server : portal issued to company.co

CN = *.company.co

OU = IT

O = company

L = City

S = City

C = US

FarmOU                          : 
InternalURL                     : https://owa.company.co/
ExternalURL                     : https://owa.company.co/
AllowHTTP                       : False
SSLOffloaded                    : False
CertificateName                 : OWA-OFFICE-SP
EditingEnabled                  : True
LogLocation                     : C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS
LogRetentionInDays              : 7
LogVerbosity                    : 
Proxy                           : 
CacheLocation                   : C:\ProgramData\Microsoft\OfficeWebApps\Working\d
MaxMemoryCacheSizeInMB          : 75
DocumentInfoCacheSize           : 5000
CacheSizeInGB                   : 15
ClipartEnabled                  : False
TranslationEnabled              : False
MaxTranslationCharacterCount    : 125000
TranslationServiceAppId         : 
TranslationServiceAddress       : 
RenderingLocalCacheLocation     : C:\ProgramData\Microsoft\OfficeWebApps\Working\waccache
RecycleActiveProcessCount       : 5
AllowCEIP                       : False
ExcelRequestDurationMax         : 300
ExcelSessionTimeout             : 450
ExcelWorkbookSizeMax            : 10
ExcelPrivateBytesMax            : -1
ExcelConnectionLifetime         : 1800
ExcelExternalDataCacheLifetime  : 300
ExcelAllowExternalData          : True
ExcelWarnOnDataRefresh          : True
OpenFromUrlEnabled              : True
OpenFromUncEnabled              : True
OpenFromUrlThrottlingEnabled    : True
AllowHttpSecureStoreConnections : False
Machines                        : {SPOWA01VM-EXRY}

when we connect SharePoint to OWA server

New-SPWOPIBinding –ServerName "SPOWA01VM-EXRY"

we get this error

**An operation failed because the following certificate has validation errors: **
Subject Name: CN=*.company.local, OU=IT, O=company, L=City, S=City, C=US Issuer Name: CN=company-DC01RM-EXRY-CA-1, DC=company,
DC=local Thumbprint: AEAAD2643E25AFE68DB37406FDCD0AAF2C700CCB  Errors:   SSL policy errors have been encountered.  Error code '0x2'..

All replies (2)

Friday, June 23, 2017 8:19 AM ✅Answered

Hi SharpRan,

Whether SharePoint registered with short name in SharePoint while certificate having the FQDN?

If so, there are two methods:

  1. Get another certificate with a matching subject name.
  2. Rename server in SharePoint farm to its FQDN.

Here is a similar post for your reference:

https://sharepoint.stackexchange.com/questions/111163/an-operation-failed-because-the-following-certificate-has-validation-errors

Best regards,

Grace Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected]


Monday, July 3, 2017 8:30 AM

this exactly resolve the issue thank you very much