Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you're using <a href="http://wix.sourceforge.net/index.html" rel="nofollow">Wix</a> for authoring your setup, then running this <a href="http://wix.sourceforge.net/manual-wix2/wix_xsd_customaction.htm" rel="nofollow">CustomAction</a> (which simply runs <strong>SelfSSL</strong>) will do the trick for you:</p> <pre><code>&lt;CustomAction Id="InstallCert" ExeCommand="selfssl.exe /N:CN=fqdn.myserver.com /V:365" /&gt; &lt;InstallExecuteSequence&gt; &lt;Custom Action="InstallCert" After="InstallFinalize" /&gt; &lt;/InstallExecuteSequence&gt; </code></pre> <p><strong>This action will</strong>:</p> <ul> <li>Generate the certificate</li> <li>Install the certificate to <code>Default Web Site</code> </li> <li>Add the https binding</li> </ul> <p><strong>Command line explained:</strong></p> <pre><code>/N:CN=[fully qualified server name] /V: = Validity in days (365 in my example) </code></pre> <p>You can specify port with <code>/P:[port number]</code> switch. The default is 443 which is what you want so you can leave it out. </p> <p><strong>Caveat</strong>: There seems to be bug with SelfSSL which seems to have been <a href="http://blogs.msdn.com/b/david.wang/archive/2005/04/20/selfssl-bug-with-websites.aspx" rel="nofollow">resolved</a>. </p> <p>If you still run into it, alternative is to switch to <code>SSLDiag</code> tool which has a similar syntax:</p> <pre><code>SSLDiag.exe /selfssl /n:CN=fqdn.myserver.com /v:365 </code></pre> <p>I do not have experience with other setup authoring tools (InstallShield etc.) but I'm sure they have provisions to run commandline programs. Worst case, you can run this through a batch file!</p> <p>Hope this helps.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload