<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>msunified.net &#187; Renew Certificate</title>
	<atom:link href="http://msunified.net/tag/renew-certificate/feed/" rel="self" type="application/rss+xml" />
	<link>http://msunified.net</link>
	<description>Technical blog about Exchange and OCS by Ståle Hansen</description>
	<lastBuildDate>Fri, 09 Jul 2010 12:01:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='msunified.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/87139ddc4ba9c9960cf07f9364dfc9f4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>msunified.net &#187; Renew Certificate</title>
		<link>http://msunified.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://msunified.net/osd.xml" title="msunified.net" />
	<atom:link rel='hub' href='http://msunified.net/?pushpress=hub'/>
		<item>
		<title>Request certificate using Exchange Management Shell</title>
		<link>http://msunified.net/2009/05/11/request-certificate-using-powerhell-exchange-2007/</link>
		<comments>http://msunified.net/2009/05/11/request-certificate-using-powerhell-exchange-2007/#comments</comments>
		<pubDate>Mon, 11 May 2009 00:02:47 +0000</pubDate>
		<dc:creator>Ståle Hansen</dc:creator>
				<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SAN certificate]]></category>
		<category><![CDATA[Certificate Request]]></category>
		<category><![CDATA[self-signed certificate]]></category>
		<category><![CDATA[Renew Certificate]]></category>

		<guid isPermaLink="false">http://msunified.net/?p=238</guid>
		<description><![CDATA[If you use the self-signed certificate assigned by the Exchange server itself there is a simple process to renew the certificate. You will typically get a note in the event viewer when the certificate is about to expire. Here&#8217;s a great blog that explains the process: http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html To request or renew a 3rd-party (or from internal PKI infrastructure) SAN [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msunified.net&blog=7420011&post=238&subd=stalehansen&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>If you use the self-signed certificate assigned by the Exchange server itself there is a simple process to renew the certificate. You will typically get a note in the event viewer when the certificate is about to expire. Here&#8217;s a great blog that explains the process: <a href="http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html" target="_blank">http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html</a></p>
<p>To request or renew a 3rd-party (or from internal PKI infrastructure) SAN certificate that resides on your Exchange server using EMS I found this approach being useful. In this example I used an internal PKI infrastructure to assign a certificate to my internal Exchange Servers behind a NLB cluster for the ClientAccess role. I found that if the certificate is requested through an internal PKI infrastructure the certificate is issued for a period of one year and has to be manually renewed.</p>
<ul>
<li>Create a request using EMS with this command</li>
<li>New-ExchangeCertificate –GenerateRequest –SubjectName “C=net, O=msunified, CN=webmail.msunified.net” –DomainName webmail.msunified.net, webmail.msunified.local, cashub01.msunified.local, cashub02.msunified.local –FriendlyName “CAS SAN Certificate” –KeySize 1024 –Path c:\CAS_SAN_cert.req –PrivateKeyExportable:$true</li>
<li>Open the req file, and copy everything except</li>
<li>&#8212;&#8211;BEGIN NEW CERTIFICATE REQUEST&#8212;&#8211;</li>
<li>&#8212;&#8211;END NEW CERTIFICATE REQUEST&#8212;&#8211;</li>
<li>Navigate to you CA server using the following url: <a href="http://CA-server/certsrv">http://CA-server/certsrv</a></li>
<li>click &#8220;request a certificate&#8221; and then select &#8220;advanced certificate request&#8221;</li>
<li>click  &#8220;Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file.&#8221;</li>
<li>past the content in the &#8220;saved request&#8221; window</li>
<li>hit submit
<ul>
<li> If you have a 2003 CA and it does not support SAN certificates you need to enable it using this command</li>
<li>CERTUTIL -setreg policy\EditFlags +EDITF_ATTRIBUTESUBJECTALTNAME2</li>
<li>Restart the certificate service and IIS</li>
</ul>
</li>
<li>click &#8220;download certificate chain&#8221; and save the file</li>
<li>On the exchange server import the certificate</li>
<li>Import-ExchangeCertificate -Path c:\2009-2.p7b -FriendlyName &#8220;webmail.msunifed.net&#8221;</li>
<li>Copy the thumbprint and enable the certificate for the selected services</li>
<li>Enable-ExchangeCertificate -Thumbprint 8192F31A99E9C89A41F572CC7AC88864551AFC91 -Services pop,imap,smtp,iis</li>
<li>Export the certificate for other exchange servers having the same role with certificate chain using IIS or open the local computer personal store</li>
<li>On the other servers import using IIS</li>
<li>On the other servers rund Enable-ExchangeCertificate -Thumbprint 8192F31A99E9C89A41F572CC7AC88864551AFC91 -Services pop,imap,smtp,iis</li>
<li>Remove the old certificate with the following command Remove-ExchangeCertificate -Thumbprint 8192F31A99E9C89A41F572CC7AC88864551AFC91</li>
</ul>
<p>To renew self-signed certificates on the EDGE servers for the SMPT transport service</p>
<ul>
<li>On the EDGE servers open EMS and do the following</li>
<li>Get-ExchangeCertificate | New-ExchangeCertificate (if its the only certificate on the server)</li>
<li>Remove-ExchangeCertificate -Thumbprint 1025C608027188FFA4DFAE77089D183DABACD077</li>
<li>You then have to re-establish the EDGE syncronizations with the new certificate</li>
<li>New-EdgeSubscription -FileName c:\newsub.xml</li>
<li>Copy the xml file to the internal servers</li>
<li>On the EMC for the HUB role in the organizational view, remove old edge subscription and then do a new one, specify the correct xml file</li>
<li>To synchronize the first time run from EMS the following commandlet: Start-EdgeSynchronization</li>
<li>To test the synch, run the following commandlet: Test-EdgeSynchronization</li>
</ul>
<p>To be able to deploy SAN certificates from intern CA, you may have to extend the attributes: <a href="http://support.microsoft.com/kb/931351">http://support.microsoft.com/kb/931351</a></p>
<h6><span style="color:#888888;">This blog is loosely based on these sites</span><br />
<a href="http://telnetport25.wordpress.com/2008/07/13/windows-2008-exchange-2007-renewing-an-existing-ssl-certificate-on-your-client-access-server/" target="_blank">http://telnetport25.wordpress.com/2008/07/13/windows-2008-exchange-2007-renewing-an-existing-ssl-certificate-on-your-client-access-server/</a><br />
<a href="http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html" target="_blank">http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html</a><br />
<a href="http://exchangepedia.com/blog/2008/01/exchange-server-2007-renewing-self.html" target="_blank">http://www.exchangeinbox.com/article.aspx?i=114</a><br />
<a href="http://msexchangeteam.com/archive/2007/07/02/445698.aspx" target="_blank">http://msexchangeteam.com/archive/2007/07/02/445698.aspx</a></h6>
<br />Posted in Exchange 2007 Tagged: Certificate Request, Exchange, PowerShell, Renew Certificate, SAN certificate, self-signed certificate <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/stalehansen.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/stalehansen.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/stalehansen.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/stalehansen.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/stalehansen.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/stalehansen.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/stalehansen.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/stalehansen.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/stalehansen.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/stalehansen.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=msunified.net&blog=7420011&post=238&subd=stalehansen&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://msunified.net/2009/05/11/request-certificate-using-powerhell-exchange-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6afc0203b3f13256107aceceb663b891?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">Ståle Hansen</media:title>
		</media:content>
	</item>
	</channel>
</rss>