17 Responses to User Profile Picture and Certificate Trusts

  1. [...] work because the MySite web application is SSL-secured. I will go over those requirements in my next post, although it should not be necessary to follow those steps unless the User Profile Service [...]

  2. Joe Alonge says:

    This helped me out a lot! Thanks.

  3. [...] we came across this article by Tristan Watkins where he described a situation where the SSL root CA certificates needed to be [...]

  4. Greg Hendy says:

    Tristan,
    Thankyou for this great article, I dont have an issue with certificates but I think you have answered a question that nobody else seemed to know – how does SP sync convert the picture profile URL field to the binary object in AD. If it does literally go and get the image using the URL then great. Do you think we would need to have that image in SharePoint or could it be on our Intranet for example: http://ourintranet/staffimages/staffnumber123.jpg what I intend to do is set our users image property in sharepoint like the above url. Then sync to AD and see if the image gets exported – do you think that could work? Im also interested to know if sharepoint will deal with that url pointing externally or will I need to create the thumbnails for it to use in its various views… once again thanks for the excellent article!

    • Hi Greg,

      Sorry about the slow reply. I wrote one earlier today, but I now know not to trust the Windows Phone 7 WordPress app’s comments functionality. It completely swallowed it!

      Anyway… this is an interesting question, because I’m not sure of three things:

      a) does specifying an external URL in the user profile trigger a separate event that grabs the image and loads the picture in to SharePoint?
      b) do the GET events above precede some other event that puts the pictures in SharePoint?
      c) Is it the w3wp.exe for the Service Application or the MIIServer.exe process that will matter most in your scenario?

      I’m guessing that the SharePoint Service Application (w3wp.exe) gets the data and populates it directly in to FIM, which will then export that data to Active Directory. Whether this means the picture never ends up in SharePoint, and the User Profile Synchronisation Service is effectively just a broker for this export, I’m not sure.

      If you’re able to test this I’d be really interested to hear how you get on. If I can find the time I’ll try to test it myself, but time is not something I’ve got much of presently. :)

      Cheers,

      Tristan

      • Greg Hendy says:

        Update: Hi Tristan – I finally found time to test one part of this. I used powershell to set the pictureURL property to our external system. example: pictureURL = http://ourIntranetSite/staffpics/staffID.jpg and this worked – the image shows up in the user profiles and in the my site and also the User photos image library in the mysite host is empty so it hasnt copied the image into SharePoint…
        Then I ran the powershell script to create thumbnails. Update-SPProfilePhotostore -mysitehostlocation “http://” and sure enough a Profile pictures folder is created in the User Photos doc library and the 3 thumbnails are created and the User profile pictureURL property is updated with the Medium size thumbnail url. I havent tried syncing to AD yet but I dont see why that would not work now as its standard procedure from this point on…

        Cheers
        Greg

        • Interesting stuff Greg! At least there’s an easy way to get those thumbnails created. I’d still be interested to see if it can export to AD without running the Update-SPProfilePhotostore cmdlet first though. You’ve piqued my curiosity! That could be quite useful in a few scenarios. Thanks again!

  5. Greg Tate says:

    Tristen,

    I agree with the other Greg above, great article, thanks for sharing your research!

  6. Steve Soper says:

    Awesome post! Saved me days of effort and my sanity. Thank you!!!

  7. Tilo says:

    Hi, thanks for the info’s.
    Quick questions, what format you provided the Root Auth Certificate?

    Thanks

    • Hiya. I just added the export of the Root CA’s certificate (without private key) through the GUI if I recall correctly. I believe I just exported it by browsing to the site and navigating to the root certificate and exporting it.

  8. Mottetreava says:

    Jumping

  9. Amancio says:

    Hi Tristan, great article it gives the background info I needed. The only strange thing is that after importing the * certificate in CA plus a IIS reset on both WFE’s the event error still exists but the pictures are stored in User Photos library.

    So it didn’t resolve the Event error logging… Any idea why the user profile (increment or full sync) is causing this?

    Kind regards, Amancio

    • Hi Amancio. I think you need to import the parent certificate rather than the certificate itself. So if you’ve bought your certificate from Equifax, you export the Equifax Root CA certificate rather than your own SSL certificate, and then you import the root CA certificate in to SharePoint’s Manage Trusts store. Does that help? I’m kind of surprised this gets things working though. Or have you imported? I may not understand your scenario correctly.

Leave a Reply

Set your Twitter account name in your settings to use the TwitterBar Section.