Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

SSL certificate


1 reply to this topic

liliay

liliay
  • Full Members
  • 6 posts

Posted 08 January 2015 - 01:16

I'm trying to install a website and configure the https binding with an already installed SSL certificate. We are not installing the certificate, but instead we need to browse installed certificate on the server and attach it to the https binding of the website. Two questions:
 
1) how do I browse installed server certificates? Is there a standard / built-in dialog in installshield for that or I can create custom dialog ?
2) How do I configure the https binding with the specified certificate?

 



Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 09 January 2015 - 17:45

UPDATE: Also see this thread http://forum.install...showtopic=21748

 

Just some resources. I don't have that much experience with IIS, but you can probably set this programatically via WMI:

 

 

And here is a script from the VbsScript editor library showing you how to copy a published certificate to a user:



' Copy a Published Certificate to a User Account


On Error Resume Next

Const ADS_PROPERTY_UPDATE = 2

Set objUserTemplate = _
GetObject("LDAP://cn=userTemplate,OU=Management,dc=NA,dc=fabrikam,dc=com")
arrUserCertificates = objUserTemplate.GetEx("userCertificate")

Set objUser = _
GetObject("LDAP://cn=MyerKen,OU=Management,dc=NA,dc=fabrikam,dc=com")
objUser.PutEx ADS_PROPERTY_UPDATE, "userCertificate", arrUserCertificates
objUser.SetInfo

Edited by Glytzhkof, 10 January 2015 - 22:25.

Regards
-Stein Åsmul