<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://thelazyadmin.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The Lazy Admin : rodney.buike, IIS</title><link>http://thelazyadmin.com/blogs/thelazyadmin/archive/tags/rodney.buike/IIS/default.aspx</link><description>Tags: rodney.buike, IIS</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>IIS 7 FTP over SSL</title><link>http://thelazyadmin.com/blogs/thelazyadmin/archive/2008/10/27/iis-7-ftp-over-ssl.aspx</link><pubDate>Mon, 27 Oct 2008 16:10:00 GMT</pubDate><guid isPermaLink="false">e0db7a03-7d76-43aa-9219-34d76d3a79c2:2261</guid><dc:creator>rodney.buike</dc:creator><slash:comments>2</slash:comments><comments>http://thelazyadmin.com/blogs/thelazyadmin/comments/2261.aspx</comments><wfw:commentRss>http://thelazyadmin.com/blogs/thelazyadmin/commentrss.aspx?PostID=2261</wfw:commentRss><wfw:comment>http://thelazyadmin.com/blogs/thelazyadmin/rsscomments.aspx?PostID=2261</wfw:comment><description>&lt;P&gt;One of the new and long awaited features in IIS 7 is support for FTPS or FTP over SSL.&amp;nbsp; By default all FTP data is transfered in clear text, including the user name and password.&amp;nbsp; From a security point of view you can see this is a bad thing.&amp;nbsp; FTPS to the rescue!&amp;nbsp; Before you begin you will need to download and install FTP for IIS7 and you can do so here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=2ECCF14A-5C4F-4CFB-9153-CFE1204B346A&amp;amp;displaylang=en"&gt;FTP for IIS 7 on Windows Server 2008 x86&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=584CACF6-78F1-47DF-90D7-9CD87B358712&amp;amp;displaylang=en"&gt;FTP for IIS 7 on Windows Server 2008 x64&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;The first step is to create the certificate.&amp;nbsp; You have two options, create a certificate request to process with a 3rd party SSL cert provider and then complete the request by importing the supplied cert, or creating a self signed certificate.&amp;nbsp; For production systems ALWAYS use a 3rd party cert from a trusted root.&amp;nbsp; For this setup we will use a self signed certificate so we will start by creating one.&lt;/P&gt;
&lt;P&gt;Click on Create Self Signed Certificate called My FTP Certificate…&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps1.jpg"&gt;&lt;IMG title=iis7-ftps-1 style="BORDER-RIGHT:0px;BORDER-TOP:0px;DISPLAY:inline;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=466 alt=iis7-ftps-1 src="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps1_thumb.jpg" width=640 border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Next click on Default Web Site and then double click on FTP SSL Settings.&amp;nbsp; Select your SSL certificate from the list and then choose Allow SSL Connections. Click Apply and we are almost done!&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps2.jpg"&gt;&lt;IMG title=iis7-ftps-2 style="BORDER-RIGHT:0px;BORDER-TOP:0px;DISPLAY:inline;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=464 alt=iis7-ftps-2 src="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps2_thumb.jpg" width=640 border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;We can test it out by connecting to the FTP server with the following command:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ftps localhost&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If all goes well we will be connected.&amp;nbsp; Now we enable SSL with the following command:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SSL on &lt;/EM&gt;&lt;/STRONG&gt;(enter)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;bye &lt;/EM&gt;&lt;/STRONG&gt;(enter)&lt;/P&gt;
&lt;P&gt;You will be disconnected but you can see that SSL for Commands and SSL for Data is set to on.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps3.jpg"&gt;&lt;IMG title=iis7-ftps-3 style="BORDER-RIGHT:0px;BORDER-TOP:0px;DISPLAY:inline;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=324 alt=iis7-ftps-3 src="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps3_thumb.jpg" width=640 border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Now that SSL is enabled we have the option to force it by choosing Require SSL Connections.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps4.jpg"&gt;&lt;IMG title=iis7-ftps-4 style="BORDER-RIGHT:0px;BORDER-TOP:0px;DISPLAY:inline;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=464 alt=iis7-ftps-4 src="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps4_thumb.jpg" width=640 border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Again click apply and if we try and login with:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ftp localhost&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;We will see the error message that the “SSL policy requires SSL for control channel”.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps5.jpg"&gt;&lt;IMG title=iis7-ftps-5 style="BORDER-RIGHT:0px;BORDER-TOP:0px;DISPLAY:inline;BORDER-LEFT:0px;BORDER-BOTTOM:0px;" height=323 alt=iis7-ftps-5 src="http://thelazyadmin.com/images/IIS7FTPoverSSL_241/iis7ftps5_thumb.jpg" width=640 border=0&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;If you want to try this out for yourself you can via the TechNet Virtual Labs.&lt;/P&gt;
&lt;P&gt;For more information see:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.microsoft.com/?linkid=7832121"&gt;TechNet Virtual Lab: Administering the IIS 7 File Transfer Protocol (FTP) Server&lt;/A&gt;&lt;/P&gt;&lt;img src="http://thelazyadmin.com/aggbug.aspx?PostID=2261" width="1" height="1"&gt;</description><category domain="http://thelazyadmin.com/blogs/thelazyadmin/archive/tags/IIS/default.aspx">IIS</category><category domain="http://thelazyadmin.com/blogs/thelazyadmin/archive/tags/Security/default.aspx">Security</category><category domain="http://thelazyadmin.com/blogs/thelazyadmin/archive/tags/Windows+Server/default.aspx">Windows Server</category><category domain="http://thelazyadmin.com/blogs/thelazyadmin/archive/tags/rodney.buike/default.aspx">rodney.buike</category></item></channel></rss>