{"id":473,"date":"2016-08-22T15:10:01","date_gmt":"2016-08-22T19:10:01","guid":{"rendered":"http:\/\/www.amixa.com\/blog\/?p=473"},"modified":"2016-08-22T15:10:01","modified_gmt":"2016-08-22T19:10:01","slug":"kerio-mailserver-csr-generation-and-import-of-ssl-cert","status":"publish","type":"post","link":"https:\/\/www.amixa.com\/blog\/2016\/08\/22\/kerio-mailserver-csr-generation-and-import-of-ssl-cert\/","title":{"rendered":"Kerio Mailserver CSR generation and import of SSL Cert"},"content":{"rendered":"<p>This is the entire process from CSR generation to installing the CRT with all trusted intermediate certs so that your connection is a good as possible.<\/p>\n<p>The primary reason for this article is due to issues that Google Gmail has with remote POP mail checking if the SSL and all Intermediate Certs aren&#8217;t installed.<\/p>\n<p>Note: This applicable for Kerio Mailserver 6.X and earlier.\u00a0 I cannot verify if it 100% works with 7.0 or newer.<\/p>\n<p><strong>Generating the new CSR Certificate Signing Request from Kerio<\/strong><\/p>\n<ol>\n<li>download the <a href=\"http:\/\/download.kerio.com\/dwn\/kms\/sslcert.zip\" target=\"_blank\">Kerio SSL tool here<\/a><\/li>\n<li>extract that file to a new directory off your C:\\ root, something easy like &#8220;C:\\SSL&#8221;<\/li>\n<li>inside the Kerio interface, go to the SSL Certs config page and<\/li>\n<li>New-&gt;New Certificate Request<\/li>\n<li>complete it and make sure your hostname is your full domain name to be protected by the SSL, eg &#8220;mail.yourdomainname.com&#8221;<\/li>\n<li>save this file into the new directory above.<\/li>\n<li>Run the following command from a command line.\u00a0 Feel free to change the bits if needed.\u00a0 We only use 4096\n<ol>\n<li><strong>openssl genrsa -out server.key 4096<\/strong><\/li>\n<li>This will output a file called &#8220;server.key&#8221;<\/li>\n<\/ol>\n<\/li>\n<li>Run the following command:\n<ol>\n<li><strong>openssl req -new -days 365 -key server.key -out server.csr -config openssl.cfg<\/strong><\/li>\n<\/ol>\n<\/li>\n<li>That will generate a file called &#8220;server.csr&#8221;. You will need this for Godaddy, Comodo or wherever you get the SSL cert<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Buy a new SSL and use the &#8220;server.csr&#8221; file to process it.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Handling the installation of your new CRT and installing intermediate keys as well.<\/strong><\/p>\n<ol>\n<li>extract the zip file with your new CRT file into the directory above<\/li>\n<li>you will need to locate and download the &#8220;intermediate certificates&#8221; for your SSL if they do not already come inside the zip file.\u00a0 In my case, we had an &#8220;Comodo Instant SSL&#8221; and inside it there was our domain CRT file and a second file &#8220;mail_mydomainname_com.ca-bundle&#8221;.\u00a0 I used the contents of this &#8220;ca-bundle&#8221; file for my needs.<\/li>\n<li>using a text editor like &#8220;Ultraedit&#8221; or &#8220;Notepad++&#8221;\u00a0 (NOTE: DON&#8217;T USE NOTEPAD., open the .CRT file.<\/li>\n<li>Copy it<\/li>\n<li>paste it into a new blank document<\/li>\n<li>open the additional file(s)<\/li>\n<li>Paste them directly below your .CRT file text, into the text file.\u00a0 If there is more than one past them back to back to back in the file.\u00a0 Note: your domain CRT must be the first one, followed by the Int. certs.<\/li>\n<li>\u00a0Save the file.\u00a0 Call it something mydomainname with extras.CRT<\/li>\n<li>open Kerio<\/li>\n<li>SSL Certs<\/li>\n<li>Import New Cert<\/li>\n<li>first it will ask for the KEY file you generated in the first section above.\u00a0 locate that file and open it<\/li>\n<li>second it will be looking for our new combined CRT file that we just did in this section above.<\/li>\n<li>once it imports, select the new cert as the active cert<\/li>\n<li>restart kerio mailserver<\/li>\n<li><a href=\"https:\/\/www.sslshopper.com\/ssl-checker.html\" target=\"_blank\">go to this site<\/a> and run a test on your domainname.<\/li>\n<li>if you&#8217;ve done everything properly, you should have all &#8220;Green Checkmarks&#8221; and a clean bill of health on your domain name.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the entire process from CSR generation to installing the CRT with all trusted intermediate certs so that your connection is a good as possible. The primary reason for this article is due to issues that Google Gmail has with remote POP mail checking if the SSL and all Intermediate Certs aren&#8217;t installed. Note: This applicable for Kerio Mailserver<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,22],"tags":[123],"class_list":["post-473","post","type-post","status-publish","format-standard","hentry","category-random-bits","category-windows-server","tag-kerio-mailserver"],"_links":{"self":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":1,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/posts\/473\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.amixa.com\/blog\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}