{"id":383,"date":"2011-11-29T13:06:00","date_gmt":"2011-11-29T13:06:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/cesardelatorre\/2011\/11\/29\/creating-an-x-509-certificate-for-windows-azure\/"},"modified":"2011-11-29T13:06:00","modified_gmt":"2011-11-29T13:06:00","slug":"creating-an-x-509-certificate-for-windows-azure","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/creating-an-x-509-certificate-for-windows-azure\/","title":{"rendered":"Creating an X.509 certificate for Windows Azure"},"content":{"rendered":"<p>I always forget the command line to do this, so I&rsquo;m going to post it in my own blog.<\/p>\n<p>The way to set a specific certificate name, so you can find it within Windows Azure after it is registered, is using the Certificate Creation Tool (makecert.exe) to create an X.509 certificate:<\/p>\n<p>&#8211; Open the Visual Studio Command Prompt window as an administrator.<\/p>\n<p>&#8211; Change the directory to location where you want to save the certificate file.<\/p>\n<p>&#8211; Type the following command:<\/p>\n<p><strong>makecert -sky exchange -r -n &#8220;CN=MyCertificateName&#8221; -pe -a sha1 -len 2048 -ss My &#8220;MyCertificateName.cer&#8221;<\/strong><\/p>\n<p>Where MyCertificateName is the name that you want to use for the certificate. It must have a .cer extension.<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; After generating the .cer, you must install it into your machine if you want to use it for Windows Azure signing, etc.<\/p>\n<p>To do so, it must be installed within the &lsquo;Certificates (Local Computer) &ndash;&gt; Personal &ndash;&gt; Certificates.<\/p>\n<p>You can do this using the Certificates Snap-in, you know, mmc.exe &ndash;&gt; Add Snap-in &ndash;&gt; Certificates &ndash;&gt; Local Computer, etc.<\/p>\n<p>After registering the certificate into your machine, you might want to export it (from the Certificates Snap-in) as .PFX, including the private key, setting a password, etc.. You might need this in order to install in into Windows Azure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I always forget the command line to do this, so I&rsquo;m going to post it in my own blog. The way to set a specific certificate name, so you can find it within Windows Azure after it is registered, is using the Certificate Creation Tool (makecert.exe) to create an X.509 certificate: &#8211; Open the Visual [&hellip;]<\/p>\n","protected":false},"author":362,"featured_media":12806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[24],"class_list":["post-383","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cesardelatorre","tag-windows-azure"],"acf":[],"blog_post_summary":"<p>I always forget the command line to do this, so I&rsquo;m going to post it in my own blog. The way to set a specific certificate name, so you can find it within Windows Azure after it is registered, is using the Certificate Creation Tool (makecert.exe) to create an X.509 certificate: &#8211; Open the Visual [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media\/12806"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}