SSL certificate

121 views
Skip to first unread message

Naveen Sharma

unread,
May 6, 2023, 6:37:08 AM5/6/23
to Wazuh mailing list
Hi Team
I want my wazuh to co-exist with my other web services (that means running on different port than 443). I made it possible with help documentation. Now I wish to install a SSL certificate for https. How can I do that ?
Certbot command throws 4 options and I want it to just create the certificates which then I can use to my wazuh portal.

Regards
N

Ujunwa Okonkwo

unread,
May 6, 2023, 7:13:52 AM5/6/23
to Wazuh mailing list
Hello Naveen,

Thank you for using Wazuh. 

To obtain a certificate for HTTPS using Certbot for a Wazuh installation running on a port other than 443, try this command:

sudo certbot certonly --standalone --preferred-challenges http -d domain.com -d www.domain.com

Then replace with your domain. When you get the certificate, you will need to manually configure your the Wazuh server to use it. 

Regards,

Naveen Sharma

unread,
May 6, 2023, 10:20:15 AM5/6/23
to Wazuh mailing list
I tried this command and got the followign error :

Could not bind TCP port 80 because it is already in use by another process on

this system (such as a web server). Please stop the program in question and then

try again.


I already have multiple Apache + Nginx sites working on the given IP using Plesk. All I am trying to configure a new domain for wazuh installation on the same server. Wazuh dashboard is configured to use <IP>:21000 port. 


Ujunwa Okonkwo

unread,
May 6, 2023, 11:07:08 AM5/6/23
to Wazuh mailing list
Hello,
To get an SSL certificate, use the webroot plugin instead of the standalone plugin if port 80 is already in use by another web server. The webroot plugin lets you get the certificate by placing a temporary file in the web server's document root. Please try this:

sudo certbot certonly --webroot --webroot-path /var/www/html -d domain.com -d www.domain.com

Regards,
Reply all
Reply to author
Forward
0 new messages