{"id":532,"date":"2009-11-04T10:15:50","date_gmt":"2009-11-04T10:15:50","guid":{"rendered":"http:\/\/g33kinfo.com\/info\/index.php\/?p=532"},"modified":"2009-11-04T10:15:50","modified_gmt":"2009-11-04T10:15:50","slug":"create-self-signed-cert-for-whm-services","status":"publish","type":"post","link":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/","title":{"rendered":"Create self signed cert for whm services"},"content":{"rendered":"<p>In whm, go to Main >> SSL\/TLS >> Generate a SSL Certificate and<br \/>\nSigning Request<\/p>\n<p>Email Address the Cert will be sent to: user@domain.com<br \/>\nCert Info (this will be displayed when a user connects)<br \/>\nEmail:  user@domain.com<br \/>\nPassword: yourpassword<br \/>\nHost to make cert for:  mail.domain.com<br \/>\nCity:   anywhere<br \/>\nState:  anywhere<br \/>\nCountry (2 letter abbreviation): US<br \/>\nCompany Name:   myco<br \/>\nCompany Division: IT<br \/>\nKey Size 1024<\/p>\n<p>Click on Create. You will be emailed a new cert. Once the new cert is generated and emailed to you;<\/p>\n<p>Go into Main >> Service Configuration >> Manage Service SSL Certificates. Click on &#8216;Install new Certificate&#8217; to the right of the service you would like to install the new cert on; in this case Exim (SMTP) Server. in the top box &#8216;Paste the entire .crt file here:&#8217; Once completed;<br \/>\nPaste the entire .key file here: in the second box. Scroll back up a little and locate the &#8216;Domain this CRT is for &#8216; Browse Button and click it. It should pull the information from the .crt file and add the key that was created earlier via the<br \/>\nMain >> SSL\/TLS >> Generate a SSL Certificate and Signing Request<br \/>\nOnce the information is in both windows, scroll to the top and click on &#8220;Submit&#8221; This will (should) return the message if installing cert for exim:<\/p>\n<p>Main >> Service Configuration >> Manage Service SSL Certificates<br \/>\nManage Service Certificates<br \/>\nInstall SSL Certificates for Exim (SMTP) Server<br \/>\nAttempting to verify your certificate&#8230;.. Install Complete<\/p>\n<p>(alot of extra stuff here in the middle regarding stuff you dont understand&#8230;)<\/p>\n<p>Exim MTA&#8230;<\/p>\n<p>Waiting for exim to restart&#8230;&#8230;&#8230;&#8230;..finished.<\/p>\n<p>exim (\/usr\/sbin\/exim -bd -q60m) running as mailnull with PID 11538 exim (\/usr\/<br \/>\nsbin\/exim -tls-on-connect -bd -oX 465) running as mailnull with PID 11547 exim<br \/>\n(\/usr\/sbin\/exim -bd -q60m) running as mailnull with PID 11930<\/p>\n<p>exim started ok<\/p>\n<p>&#8230;Done<\/p>\n<p>Certificate has been installed!<\/p>\n<p>Now, it&#8217;s time to modify exim to reflect the changes; <\/p>\n<p>vim \/etc\/exim.conf.com<\/p>\n<p>modified lines 237-242 (approximate values) in vim, to get line numbers, type this without single quotes, include the colon;     &#8216; :set number &#8216;<br \/>\nto turn off numbers &#8216; :unset numbers &#8216;<br \/>\n    237 #changed default mail cert to mail.domain.com<br \/>\n    238 #tls_certificate = \/etc\/exim.crt<br \/>\n    239 tls_certificate = \/usr\/share\/ssl\/certs\/mail.domain.com.crt<br \/>\n    240<br \/>\n    241 #tls_privatekey = \/etc\/exim.key<br \/>\n    242 tls_privatekey = \/usr\/share\/ssl\/certs\/mail.domain.com.key<\/p>\n<p>last but not least, create the .pem key from .crt via the command line using the following commands;<br \/>\ncd  \/usr\/share\/ssl\/certs<br \/>\nroot@server [\/usr\/share\/ssl\/certs]# openssl x509 -in mail.domain.com.crt -out mail.domain.com.der -outform DER<br \/>\nroot@server [\/usr\/share\/ssl\/certs]# openssl x509 -in mail.domain.com.der -inform DER -out mail.domain.com.pem -outform PEM in \/usr\/share\/ssl\/certs<\/p>\n<p>(substitute your domain name for the &#8216;domain&#8217; listed in the commands and use the caps for the DER and PEM, it is needed.)<\/p>\n<p>That&#8217;s it. You should be able to connect securely to the server via ssh using the following settings;<\/p>\n<p>In outlook, set your mail server to the host name for SMTP\/POP3\/IMAP to<br \/>\nhost.emailservername.com instead of domain.com, where emailservername is the<br \/>\nname of the server your account is on (you can find the server you are on via<br \/>\nthe Account Information Email) and then make sure that your mail client is<br \/>\nusing the following ports for SSL:<\/p>\n<p>SMTP &#8211; 465<br \/>\nPOP3 &#8211; 995<\/p>\n<p>As always you want to make sure that your account name is user@domain.com (or<br \/>\nuser+domain.com) and that you are using authentication on your SMTP server.<\/p>\n<p>Use the following settings in your email client (example used is Outlook) to<br \/>\nconnect:<\/p>\n<p>User Information<br \/>\nYour Name: First LastName<br \/>\nE-mail Address: user@mydomain.com<\/p>\n<p>Logon Information<br \/>\nUser Name: user@mydomain.com<br \/>\nPassword: myemailuserpass<\/p>\n<p>Server Information<br \/>\nIncoming mail server (POP3): host.emailservername.com<br \/>\nOutgoing mail server (SMTP): host.emailservername.com<\/p>\n<p>Click the &#8220;More Settings&#8230;&#8221; button, then the Outgoing Server tab,<br \/>\nand checked &#8220;My outgoing server (SMTP) requires authentication&#8221;<\/p>\n<p>Click the Advanced tab, changed the port back to 25 but keep the &#8220;My<br \/>\noutgoing server (SMTP) requires a secure connection&#8221; checked. Upon<br \/>\nrunning the test to check if it is working in Outlook, you should be given an<br \/>\nSSL prompt to accept the self signed certificate, indicating it is working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In whm, go to Main >> SSL\/TLS >> Generate a SSL Certificate and Signing Request Email Address the Cert will be sent to: user@domain.com Cert Info (this will be displayed when a user connects) Email: user@domain.com Password: yourpassword Host to make cert for: mail.domain.com City: anywhere State: anywhere Country (2 letter abbreviation): US Company Name:&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-532","post","type-post","status-publish","format-standard","hentry","category-info"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create self signed cert for whm services - Linux Shtuff<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create self signed cert for whm services - Linux Shtuff\" \/>\n<meta property=\"og:description\" content=\"In whm, go to Main &gt;&gt; SSL\/TLS &gt;&gt; Generate a SSL Certificate and Signing Request Email Address the Cert will be sent to: user@domain.com Cert Info (this will be displayed when a user connects) Email: user@domain.com Password: yourpassword Host to make cert for: mail.domain.com City: anywhere State: anywhere Country (2 letter abbreviation): US Company Name:... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Shtuff\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:author\" content=\"https:\/\/fb.me\/g33kinf0\" \/>\n<meta property=\"article:published_time\" content=\"2009-11-04T10:15:50+00:00\" \/>\n<meta name=\"author\" content=\"g33kadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/drsinger1111\" \/>\n<meta name=\"twitter:site\" content=\"@drsinger1111\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/\"},\"author\":{\"name\":\"g33kadmin\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"headline\":\"Create self signed cert for whm services\",\"datePublished\":\"2009-11-04T10:15:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/\"},\"wordCount\":717,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"articleSection\":[\"General Info\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/\",\"name\":\"Create self signed cert for whm services - Linux Shtuff\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\"},\"datePublished\":\"2009-11-04T10:15:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/create-self-signed-cert-for-whm-services\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create self signed cert for whm services\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/\",\"name\":\"Linux Shtuff\",\"description\":\"Because I have CRS Syndrome...\",\"publisher\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/#\\\/schema\\\/person\\\/c022e4c40b13ea1b678e6f020756f547\",\"name\":\"g33kadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"url\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"contentUrl\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\",\"width\":512,\"height\":512,\"caption\":\"g33kadmin\"},\"logo\":{\"@id\":\"https:\\\/\\\/g33kinfo.com\\\/info\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/minion-researchA.gif\"},\"description\":\"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\\\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....\",\"sameAs\":[\"https:\\\/\\\/thelinuxreport.com\",\"https:\\\/\\\/fb.me\\\/g33kinf0\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/drsinger1111\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create self signed cert for whm services - Linux Shtuff","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/","og_locale":"en_US","og_type":"article","og_title":"Create self signed cert for whm services - Linux Shtuff","og_description":"In whm, go to Main >> SSL\/TLS >> Generate a SSL Certificate and Signing Request Email Address the Cert will be sent to: user@domain.com Cert Info (this will be displayed when a user connects) Email: user@domain.com Password: yourpassword Host to make cert for: mail.domain.com City: anywhere State: anywhere Country (2 letter abbreviation): US Company Name:... Read More","og_url":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/","og_site_name":"Linux Shtuff","article_publisher":"https:\/\/fb.me\/g33kinf0","article_author":"https:\/\/fb.me\/g33kinf0","article_published_time":"2009-11-04T10:15:50+00:00","author":"g33kadmin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/drsinger1111","twitter_site":"@drsinger1111","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/#article","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/"},"author":{"name":"g33kadmin","@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"headline":"Create self signed cert for whm services","datePublished":"2009-11-04T10:15:50+00:00","mainEntityOfPage":{"@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/"},"wordCount":717,"commentCount":0,"publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"articleSection":["General Info"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/","url":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/","name":"Create self signed cert for whm services - Linux Shtuff","isPartOf":{"@id":"https:\/\/g33kinfo.com\/info\/#website"},"datePublished":"2009-11-04T10:15:50+00:00","breadcrumb":{"@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/g33kinfo.com\/info\/create-self-signed-cert-for-whm-services\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/g33kinfo.com\/info\/"},{"@type":"ListItem","position":2,"name":"Create self signed cert for whm services"}]},{"@type":"WebSite","@id":"https:\/\/g33kinfo.com\/info\/#website","url":"https:\/\/g33kinfo.com\/info\/","name":"Linux Shtuff","description":"Because I have CRS Syndrome...","publisher":{"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/g33kinfo.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/g33kinfo.com\/info\/#\/schema\/person\/c022e4c40b13ea1b678e6f020756f547","name":"g33kadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","url":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","contentUrl":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif","width":512,"height":512,"caption":"g33kadmin"},"logo":{"@id":"https:\/\/g33kinfo.com\/info\/wp-content\/uploads\/2022\/07\/minion-researchA.gif"},"description":"I am a g33k, Linux blogger, developer, student and Tech Writer for Liquidweb.com\/kb. My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....","sameAs":["https:\/\/thelinuxreport.com","https:\/\/fb.me\/g33kinf0","https:\/\/x.com\/https:\/\/twitter.com\/drsinger1111"]}]}},"_links":{"self":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/comments?post=532"}],"version-history":[{"count":0,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/posts\/532\/revisions"}],"wp:attachment":[{"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/media?parent=532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/categories?post=532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/g33kinfo.com\/info\/wp-json\/wp\/v2\/tags?post=532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}