New-OfficeWebAppsFarm: Office Web Apps was unable to find the specified certificate

Today I was working on installation & configuration of Office Web Apps for one of the SharePoint Extranet Farm, installation of OWA went successfully however while creating Office Web Apps Farm I started facing a weird issue where the certificate for OWA was available on server however it was still unable to find it: 

Error Below:
-------------------
PS D:\> New-OfficeWebAppsFarm –InternalUrl "https://owaserver01.domain.com/" -ExternalUrl "h
ttps://owa.domain.com/" –CertificateName "owa.domain.com" –EditingEnabled
New-OfficeWebAppsFarm : Office Web Apps was unable to find the specified certificate.
At line:1 char:1
+ New-OfficeWebAppsFarm –InternalUrl "https://owaserver01.domain.com/" -Ex ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [New-OfficeWebAppsFarm], ArgumentException
    + FullyQualifiedErrorId : CertificateNotFound,Microsoft.Office.Web.Apps.Administration.NewFarmCommand


I had imported the certificate to IIS and checked it was available under Personal certificate store. Also tried running cmdlet with Friendly name of certificate, Full Name of certificate and with path where I exported the .cer file however it still kept on giving the same error.

Not sure why and which certificate it was unable to find as I imported the certificate properly and I was able to find the certificate :)

Later I realized to check the certificate to see if the certificate is proper and under Certificate Path - Certificate Status was showing "The issuer of this certificate could not be found". This gave me a hint that this may be the reason why New-OfficeWebAppsFarm cmd is failing.

I took the Root chain certs from another server and imported here on this OWA server.

After this I ran the New-OfficeWebAppsFarm cmdlet again and this time it worked. 

Comments

  1. Hello Bhavik,

    Nice post ...
    I understood every thing about you post except
    "I took the Root chain certs from another server and imported here on this OWA server" this line.
    As above line, you took "Roor tain certs" from another server. Other server meaning WFE or IIS server or any other server.
    Could you please give me clarity on this.

    Thanks,
    Venkat

    ReplyDelete
    Replies
    1. Hello Venkat,

      Thanks for reaching out. From the root chain certificates I mean that the Root Certification Authority certificates.

      I just received the .cer for "owa.domain.com" and not the .p7b file which has entire chain of certificates.

      So instead of I reaching out to Certification Authority team I logged into another server in our environment which had root certs of that Certification Authority and imported to this affected OWA server.

      Please let me know if you still have any queries. Thanks!

      Delete
  2. Hello Bhavik,

    Nice post ...
    I understood every thing about you post except
    "I took the Root chain certs from another server and imported here on this OWA server" this line.
    As above line, you took "Roor tain certs" from another server. Other server meaning WFE or IIS server or any other server.
    Could you please give me clarity on this.

    Thanks,
    Venkat

    ReplyDelete

Post a Comment

Popular posts from this blog

SharePoint 2013 - 'Sorry, Apps are turned off' error

Unable to see all fields for Document Set properties in SharePoint site