{"id":3819,"date":"2019-03-19T09:16:10","date_gmt":"2019-03-19T03:46:10","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=3819"},"modified":"2019-03-19T09:16:17","modified_gmt":"2019-03-19T03:46:17","slug":"centos-web-panel-isnt-accessible-reinstall-self-signed-ssl-certificate","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/centos-web-panel-isnt-accessible-reinstall-self-signed-ssl-certificate\/","title":{"rendered":"CentOS Web Panel isn&#8217;t accessible &#8211; Reinstall Self Signed SSL Certificate"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">CentOS Web Panel isn&#8217;t accessible &#8211; Reinstall Self Signed SSL Certificate<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"mce_1\">Date posted : 18\/03\/2019<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In some rare scenario, centOS webpanel mayn&#8217;t work for you for an existing server.<br><br>Generally, it could be due to multiple reasons.<br>* The service mightn&#8217;t be running <br>* Port might be blocked on firewall <br><br>In this particular case, the above reasons are not a actual cause. If you check the service it will say is running fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But if you actually check the service, it will show the below error<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Mar 11 05:36:13 server cwpsrv: cwpsrv: [emerg] IO_new_file(\"\/etc\/pki\/tls\/certs\/hostname.crt\") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('\/etc\/pki\/tls\/certs\/hostname.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Since the Self signed SSL got expired, then SSL link to hostname.crt is broken. So we need to generate new self signed SSL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please run below commands to generate the Self Signed SSL<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout \/etc\/pki\/tls\/private\/hostname.key -out \/etc\/pki\/tls\/certs\/hostname.crt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart CentOS WebPanel service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart cwpsrv.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now you can access the the CentOS panel without issues<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Url &#8211; https:\/\/xx.xx.xx.xx:2031<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"484\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Screen-Shot-2019-03-18-at-1.45.01-PM-1024x484.png\" alt=\"\" class=\"wp-image-3821\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Screen-Shot-2019-03-18-at-1.45.01-PM-1024x484.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Screen-Shot-2019-03-18-at-1.45.01-PM-300x142.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Screen-Shot-2019-03-18-at-1.45.01-PM-768x363.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Screen-Shot-2019-03-18-at-1.45.01-PM.png 1103w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using <a href=\"https:\/\/pheonixsolutions.com\">pheonix solutions<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS Web Panel isn&#8217;t accessible &#8211; Reinstall Self Signed SSL Certificate Date posted : 18\/03\/2019 In some rare scenario, centOS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1024],"tags":[161,543,277,206],"class_list":["post-3819","post","type-post","status-publish","format-standard","hentry","category-security","tag-centos","tag-centos-webpanel","tag-ssl","tag-ssl-certificate-installation","psol-cat-security"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ZB","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3819"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3819\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}