<?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>codesalot.com &#187; Certificates</title>
	<atom:link href="http://www.codesalot.com/tag/certificates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codesalot.com</link>
	<description>Thoughts, ponderings and technical solutions, tips and tricks about Unified Communications and Video Conferencing</description>
	<lastBuildDate>Tue, 24 Jan 2012 21:48:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating certificates for Codian MCUs</title>
		<link>http://www.codesalot.com/2010/creating-certificates-fo-codian-mcu/</link>
		<comments>http://www.codesalot.com/2010/creating-certificates-fo-codian-mcu/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 08:27:34 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[video conferencing]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Cisco Telepresence]]></category>
		<category><![CDATA[Codian MCU]]></category>

		<guid isPermaLink="false">http://www.codesalot.com/?p=151</guid>
		<description><![CDATA[If you want to use HTTPS (without the annoying browser certificate warnings) or MTLS with a Codian MCU, you&#8217;ll need to install a certificate on the MCU. Remember that you&#8217;ll need the &#8220;Encryption&#8221; release key to enable SSL in any form. This is a free key that kan be ordered from TAC. Under Network -&#62; SSL certificates, [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to use HTTPS (without the annoying browser certificate warnings) or MTLS with a Codian MCU, you&#8217;ll need to install a certificate on the MCU.</p>
<p>Remember that you&#8217;ll need the &#8220;Encryption&#8221; release key to enable SSL in any form. This is a free key that kan be ordered from TAC.</p>
<p>Under Network -&gt; SSL certificates, you&#8217;ll find this screen:</p>
<p><a href="http://www.codesalot.com/wp-content/uploads/2010/11/cert1.jpg"></a></p>
<p><a href="http://www.codesalot.com/wp-content/uploads/2010/11/cert.jpg"><img class="alignnone size-medium wp-image-156" title="certificat_config" src="http://www.codesalot.com/wp-content/uploads/2010/11/cert-300x124.jpg" alt="Certificate config" width="300" height="124" /></a></p>
<p>So we need to provide a certificate and a private key corresponding to the certificate, which means that we need to create a CSR and import both the key and the certificate to the MCU.</p>
<p>I&#8217;ll show how to do this using openSSL and a Windows CA. If there is an OCS/Lync implementation in the environment, you could use the wizard to create the cert, but you would have to split it up with something like openSSL afterwords anyway, so the easiest thing is just to create it all with openSSL.</p>
<p>openSSL can be found for almost any platform, I use <a href="http://www.slproweb.com/products/Win32OpenSSL.html" target="_blank">openSSL for win32</a> </p>
<h3>Create the CSR</h3>
<p>Use this command to create the CSR</p>
<pre>openssl req -new -newkey rsa:2048 -nodes -out <strong>&lt;name_of_the_cert&gt;</strong>.csr -keyout <strong>&lt;name_of_the_key_file&gt;</strong>.key -
subj "/C=<strong>&lt;countrycode&gt;</strong>/ST=<strong>&lt;state&gt;</strong>/L=<strong>&lt;City&gt;</strong>/O=<strong>&lt;Organisation&gt;</strong>/OU=<strong>&lt;Organisational Unit&gt;</strong>/CN=<strong>&lt;fqdn.of.mcu&gt;</strong>"</pre>
<p>Exchange all the <strong>&lt;variables&gt;</strong> with the correct values.</p>
<p>This should create two files, <strong>&lt;name_of_the_cert&gt;</strong>.csr and <strong>&lt;name_of_the_key_file&gt;</strong>.key and place them in the same directory as you run the command.</p>
<h3>Create the cert</h3>
<p>Copy the .csr file to the CA. In a cmd window, navigate to the folder you copied the .csr to and run:</p>
<pre>certreq -submit -attrib "CertificateTemplate: WebServer" <strong>&lt;name_of_the_cert&gt;</strong>.csr</pre>
<p>If the CA is configured to issue certs automagiacally, you should have be asked where to save the .cer. If not, you&#8217;ll have to open the CA MMC snapin and issue the cert manually.</p>
<h3>Add the cert to the MCU</h3>
<p>Back on the MCU, browse to the .cer in the Certificate field and the .key in the Private Key field. Leave the password field empty. Restart the MCU and you should be good to go.</p>
<h3>Creating a trust store</h3>
<p>The trust store to be uploaded needs to be in .pem format. Export the root certificate you need to trust to a DER encoded file. (normally .cer) and run the following command:</p>
<pre>openssl x509 -inform der -in <strong>&lt;rootcert&gt;</strong>.cer -out <strong>&lt;rootcert&gt;</strong>.pem</pre>
<p><strong>&lt;rootcert&gt;</strong>.pem can be uploaded as the trust store. <a name="PemToDer"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codesalot.com/2010/creating-certificates-fo-codian-mcu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Address book issues</title>
		<link>http://www.codesalot.com/2010/address-book-issues/</link>
		<comments>http://www.codesalot.com/2010/address-book-issues/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 13:54:23 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Unified Communications]]></category>
		<category><![CDATA[Address book service]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[OCS 2007 R2]]></category>

		<guid isPermaLink="false">http://www.codesalot.com/?p=143</guid>
		<description><![CDATA[I had a weird problem with an 2007R2 installation last week. The addressbook had stopped working. I checked all the normal errors, certificates and IIS on the FE, but everything seemed to be just fine. The addressbook files were created, and I could download all files in the browser. Everything seemed to be normal, except [...]]]></description>
			<content:encoded><![CDATA[<p>I had a weird problem with an 2007R2 installation last week. The addressbook had stopped working. I checked all the normal errors, certificates and IIS on the FE, but everything seemed to be just fine. The addressbook files were created, and I could download all files in the browser. Everything seemed to be normal, except that the clients were giving the error about not being able to download the addressbook.</p>
<p>After a bit of searching the internets, I came across <a href="http://www.theocsinsider.com/ocs-2007/ocs-and-windows-7-problems-to-watch-out-for/" target="_blank">this</a>. Seems that there was some new functionality added to IE8 where it refuses the certificate if the CRL is unreachable.</p>
<p>The solution is either to fix the CRL, or to uncheck &#8220;Check for server certificate revocation&#8221; under advanced settings in &gt;IE8.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codesalot.com/2010/address-book-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Communicator phone edition certificates, Standalone CA</title>
		<link>http://www.codesalot.com/2009/communicator-phone-edition-certificates-standalone-ca/</link>
		<comments>http://www.codesalot.com/2009/communicator-phone-edition-certificates-standalone-ca/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 07:43:13 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[Unified Communications]]></category>
		<category><![CDATA[Certificates]]></category>
		<category><![CDATA[Communicator Phone Edition]]></category>
		<category><![CDATA[OCS 2007 R2]]></category>

		<guid isPermaLink="false">http://www.codesalot.com/?p=84</guid>
		<description><![CDATA[I recently was installing OCS in a domain where we for some reason could not use an enterprise CA, so a standalone was installed. This works fine on the MOC clients, but it was a problem when we were trying to use Communicator Phone Edition. According to the phone ed. deployment guide, the CPE gets [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was installing OCS in a domain where we for some reason could not use an enterprise CA, so a standalone was installed. This works fine on the MOC clients, but it was a problem when we were trying to use Communicator Phone Edition.</p>
<p>According to the phone ed. deployment guide, the CPE gets the certificate from AD like this:</p>
<p><em>1.   The device searches for Active Directory directory objects of category <strong>certificationAuthority</strong>. If the search returns any objects, the device will use the attribute <strong>caCertificate</strong>. This attribute is assumed to hold the certificate and the device will install the certificate.</em></p>
<p><em>The Root CA certificate must be published in the <strong>caCertificate</strong> for Communicator Phone Edition. To place the Root CA certificate in the<strong> caCertificate</strong> attribute, use the following command:</em></p>
<p><em> certutil -f -dspublish &lt;Root CA certificate in .cer file&gt; RootCA.</em></p>
<p><em>2.   If the search for Active Directory objects of category <strong>CertificationAuthority</strong> does not return any objects, or if the objects have empty <strong>caCertificate</strong> attributes, the device searches for Active Directory objects of category <strong>pKIEnrollmentService</strong> in the configuration naming context. Such objects exist if certificate AutoEnrollment was enabled in Active Directory. If the search returns any objects, it will use the <strong>dNSHostName</strong> attribute returned to reference the CA and it will then use the Web interface of the Microsoft Certificates Service to retrieve the Root CA certificate by using the HTTP GET command </em><a href="http://%3cdnshostname%3e/certsrv/certnew.p7b?ReqID=CACert&amp;Renewal=-1&amp;Enc=b64"><em>http://&lt;dNSHostname&gt;/certsrv/certnew.p7b?ReqID=CACert&amp;Renewal=-1&amp;Enc=b64</em></a><em>.</em></p>
<p><em>If neither of these methods succeeds, the device displays the error message &#8220;Cannot validate server certificate&#8221; and the user is unable to use the device.</em></p>
<p>The certutil command described above requires you to have necessary rights in the forest, which we didn&#8217;t have.</p>
<p>The solution ended up being:</p>
<p>* Run the server 2k3 reskit tool pkiview.msc<br />
* Right click Enterprise PKI and choose Manage AD Containers<br />
* In the NTAuthCertificates tab, add the root certificate of the standalone CA</p>
<p>That should be it! When we did this the phones started downloading the right certificate.</p>
<p>Edit: This might not be working perfectly. Some phones use an extreme amount of time downloading the right certificate. Might be the messy PKI in the forest being the problem, but i will need to test this some more&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codesalot.com/2009/communicator-phone-edition-certificates-standalone-ca/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

