<?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/"
	>

<channel>
	<title>A weblog about Microsoft Technologies &#187; certificate</title>
	<atom:link href="http://www.anilerduran.com/index.php/tag/certificate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anilerduran.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 17:23:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Exchange 2010 Certificate Management</title>
		<link>http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/</link>
		<comments>http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 21:53:46 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[exchange 2010]]></category>
		<category><![CDATA[sertifika]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/</guid>
		<description><![CDATA[Exchange 2007 ile birlikte default SSL’li gelen CAS , Exchange 2010’da da aynı şekilde devam ediyor.Tabiki production ortamında default gelen bu sertifikayı kaldırıp commercial bir sertifika yada localda bulunan CA’den bir sertifika talebinde bulunmanız gerekli.Exchange 2010 ile gelen en hoş yeniliklerden bir tanesi artık GUI arayüzü ile sertifika isteklerini gerçekleştirebiliyorsunuz.Sihirbaz external ve internal tüm gereksinimler [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-certificate-management%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-certificate-management%2F&amp;text=Exchange+2010+Certificate+Management" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/"></script></span></div><p>Exchange 2007 ile birlikte default SSL’li gelen CAS , Exchange 2010’da da aynı şekilde devam ediyor.Tabiki production ortamında default gelen bu sertifikayı kaldırıp commercial bir sertifika yada localda bulunan CA’den bir sertifika talebinde bulunmanız gerekli.Exchange 2010 ile gelen en hoş yeniliklerden bir tanesi artık GUI arayüzü ile sertifika isteklerini gerçekleştirebiliyorsunuz.Sihirbaz external ve internal tüm gereksinimler için(owa,outlook anywhere,ecp vb) sertifika talebinde bulunmanızı ve ardından import edebilmenizi sağlayan grafik arayüzüne sahip.</p>
<p>Ama tabiki hala powershell üzerinden sertifika isteklerimizi gerçekleştirebiliyoruz.Yalnız parametreler Exchange 2007’den biraz farklı.Exchange 2010 üzerinde bir sertifika talebinde bulunmak isterseniz komutunuz aslında basit;</p>
<blockquote><p>New-ExchangeCertificate -GenerateRequest -SubjectName &#8220;c=tr, o=Company, cn=mail.company.com&#8221; -DomainName company.com, example.com &#8220;“PrivateKeyExportable $true</p></blockquote>
<p>-Domain name parametresinden sonra bu sertifikada yer almasını istediğiniz tüm isimleri belirtmeniz gerekli.Örneğin owa’nın external internal isimleri,autodiscover isimleri,cas netbios ve fqdn bilgilerini sayabiliriz.Yalnız Exchange 2007’de bu komutu çalıştıranlar hatırlayacaktır,komutun sonunda &#8220;“path parametremiz vardı ve bu sayede sertifikayı export edip CA’e götürebiliyorduk.Yukarıdaki komutu çalıştırdığınızda ise export gerçekleşmiyor sadece thumbprint veriliyor.-path yazarsanızda parametreyi tanımıyorum diye bir uyarı döndürüyor.</p>
<p>Peki sertifikayı eski yöntemde olduğu gibi export etmek isterseniz ne yapmamız gerekli? Ufak bir değişken işinizi görücek.</p>
<blockquote><p>$Data = New-ExchangeCertificate -GenerateRequest -SubjectName &#8220;c=tr, o=Company, cn=mail.company.com&#8221; -DomainName company.com, example.com &#8220;“PrivateKeyExportable $true</p>
<p>Set-Content -path &#8220;C:\CertRequest.req&#8221; -Value $Data</p></blockquote>
<p>Çıkan sertifika davetiyesini CA konsoluna webden bağlanarak sertifika haline getirme süreci Exchange 2003 ve Exchange 2007 ile benzer.Sonuçta elde ettiğiniz sertifikayı Exchange içerisine import etmek için yine biraz daha farklı bir komut çalıştırmanız gerekli;</p>
<blockquote><p>Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path c:\certnew.cer -Encoding byte -ReadCount 0))</p></blockquote>
<p>Son olarak enable etmeniz gerekli sertifikayı.Bunun için get-exchangecertificate ile yüklediğiniz exchange sertifikasının thumbprint numarasını kaydedip aşağıdaki gibi bir komut çalıştırmanız yeterlidir.</p>
<blockquote><p>Enable-ExchangeCertificate -Thumbprint 5113ae0233a72fccb75b1d0198628675333d010e -Services POP,IMAP,SMTP,IIS</p></blockquote>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-certificate-management%2F&amp;t=Exchange%202010%20Certificate%20Management" id="facebook_share_button_1531" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1531') || document.getElementById('facebook_share_icon_1531') || document.getElementById('facebook_share_both_1531') || document.getElementById('facebook_share_button_1531');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1531') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-certificate-management%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2010%2Fexchange-2010-certificate-management%2F&amp;text=Exchange+2010+Certificate+Management" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2010/exchange-2010-certificate-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exchange 2007 &#8211; Outlook 2007 Sertifika Hatası</title>
		<link>http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/</link>
		<comments>http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 09:26:32 +0000</pubDate>
		<dc:creator>Anıl ERDURAN</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[cas]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[client access server]]></category>
		<category><![CDATA[default web site]]></category>
		<category><![CDATA[echange 2007]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[get-certificate]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[microsoft outlook 2007]]></category>
		<category><![CDATA[name]]></category>

		<guid isPermaLink="false">http://www.anilerduran.com/?p=1303</guid>
		<description><![CDATA[Bildiğimiz gibi Exchange 2003 kurulumundan sonra owa clientlar mailboxlarına direk 80 üzerinden erişiyorlardı.Bunun sebebi varsayılanda bir sertifika gelmemesi.Exchange 2007&#8242;de ise bu durum değişti ve IIS üzerindeki Deafult Web site varsayılanda sertifikalı olarak gelmektedir.Yalnız 1 senelik varsayılan bu sertifika kullanıldığında büyük ihtimalle hata alacaksınız.Sebebi sertifikanın ismi ile owa&#8217;ya eriştiğiniz dns isminin farklı olması. Localde bir CA&#8217;niz [...]]]></description>
			<content:encoded><![CDATA[
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fexchange-2007-outlook-2007-sertifika-hatasi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fexchange-2007-outlook-2007-sertifika-hatasi%2F&amp;text=Exchange+2007+%E2%80%93+Outlook+2007+Sertifika+Hatas%C4%B1" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/"></script></span></div><p>Bildiğimiz gibi Exchange 2003 kurulumundan sonra owa clientlar mailboxlarına direk 80 üzerinden erişiyorlardı.Bunun sebebi varsayılanda bir sertifika gelmemesi.Exchange 2007&#8242;de ise bu durum değişti ve IIS üzerindeki Deafult Web site varsayılanda sertifikalı olarak gelmektedir.Yalnız 1 senelik varsayılan bu sertifika kullanıldığında büyük ihtimalle hata alacaksınız.Sebebi sertifikanın ismi ile owa&#8217;ya eriştiğiniz dns isminin farklı olması.</p>
<p>Localde bir CA&#8217;niz varsa basit bir şekilde IIS üzerinde yada exchange management shell kullanarak istediğiniz isimle sertifika çekebilirsiniz.Bu noktadan sonra client tarafı sertifika hatası almadan OWA&#8217;ya erişebilecektir.</p>
<p>Yalnız bu işlemden sonra ufak bir sıkıntı daha bizi bekliyor.dns ismi ile yeni bir sertifika oluşturduktan sonra Microsoft Outlook&#8217;u açtığımızda aşağıdaki gibi bir hatayla karşılaşırız.</p>
<p><a href="http://www.anilerduran.com/wp-content/uploads/2009/04/cert.jpg"><img class="alignnone size-full wp-image-1304" title="cert" src="http://www.anilerduran.com/wp-content/uploads/2009/04/cert.jpg" alt="" width="391" height="277" /></a></p>
<p><strong>&#8220;the name on the security certificate is invalid or does not match the name of the site&#8221;</strong></p>
<p>Burada oluşturduğumuz sertifika ile Outlook&#8217;un bağlanmaya çalıştığı isim farklı çıkıyor.Çünkü Mapi clientlar Client Access Serverları autodiscovery servisi için kullanırlar ve açılışta bu bağlantıyı kontrol ederler.Aradığı isim ise direk<strong> CAS&#8217;ın fqdn&#8217;idir</strong>.E biz sertifikayı dışarıdan ulaşacağımız dns ismi ile oluşturduğumuz için direk isim hatasını alıyoruz.</p>
<p>Bu problemin önüne geçmek için aşağıdaki Exchange Management Shell komutlarını çalıştıralım.</p>
<p>Set-ClientAccessServer -Identity <strong>CAS1</strong> -AutodiscoverServiceInternalUri <strong>https://mail.anilerduran.com</strong>/autodiscover/autodiscover.xml</p>
<p>Set-WebServicesVirtualDirectory -Identity &#8220;<strong>CAS1</strong>\EWS (Default Web Site)&#8221; -InternalUrl <strong>https://mail.anilerduran.com</strong>/ews/exchange.asmx</p>
<p>Set-OABVirtualDirectory -Identity &#8220;<strong>CAS1</strong>\oab (Default Web Site)&#8221; -InternalUrl <strong>https://mail.anilerduran.com</strong>/oab</p>
<p>Set-UMVirtualDirectory -Identity &#8220;<strong>CAS1</strong>\unifiedmessaging (Default Web Site)&#8221; -InternalUrl <strong>https://mail.anilerduran.com</strong>/unifiedmessaging/service.asmx</p>
<p>Bu komutlardaki CAS1 client access server&#8217;ınızın ismi.koyu renkli adresler ise daha önceden clientların dışarıdan owaya ulaşmaları için belirlediğiniz ve sertifikasını oluşturduğunuz adres.</p>
<p>Bu işlemden sonra CAS üzerinde iisreset komutuyla iis servisini yeniden başlatmanız yeter.Artık Outlook Mapi clientlarınız isimden dolayı gerçekleşen sertifika hatasını almayacaktır.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fexchange-2007-outlook-2007-sertifika-hatasi%2F&amp;t=Exchange%202007%20-%20Outlook%202007%20Sertifika%20Hatas%C4%B1" id="facebook_share_button_1303" style="font-size:11px; line-height:13px; font-family:'lucida grande',tahoma,verdana,arial,sans-serif; text-decoration:none; display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; margin: 5px 0; height:15px; border:1px solid #d8dfea; color: #3B5998; background: #fff url(http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif) no-repeat top right;">Share</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_1303') || document.getElementById('facebook_share_icon_1303') || document.getElementById('facebook_share_both_1303') || document.getElementById('facebook_share_button_1303');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_1303') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	
				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ -->
				<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fexchange-2007-outlook-2007-sertifika-hatasi%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing"><div id="fb-root"></div><fb:send href="http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/" font=""></fb:send></span><span class="mr_social_sharing"><a href="http://twitter.com/share?url=http%3A%2F%2Fwww.anilerduran.com%2Findex.php%2F2009%2Fexchange-2007-outlook-2007-sertifika-hatasi%2F&amp;text=Exchange+2007+%E2%80%93+Outlook+2007+Sertifika+Hatas%C4%B1" target="_blank" class="mr_social_sharing_popup_link"><img src="http://www.anilerduran.com/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing"><script type="IN/Share" data-url="http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/"></script></span></div>]]></content:encoded>
			<wfw:commentRss>http://www.anilerduran.com/index.php/2009/exchange-2007-outlook-2007-sertifika-hatasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

