Jump to content
Sign in to follow this  
Th4ntis

Help using SSL on C2

Recommended Posts

So I'm running a VPS and i've never had to make an SSL Cert for it(Kinda new to this), so I looked up how to make an SSL Cert so I can use it and connect to the C2 securely. So, I found this guide and is essentially says to run this command:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt

So I do and I do make the cert. So I run this command:

./c2_community-linux-64 -hostname (VPS IP) -certFile string /etc/ssl/certs/apache-selfsigned.crt

It DOES run, but I can still only get to it if I use HTTP(http://(VPS IP):8080).  So can someone maybe help me out or point me in the right direction. Much appreciated.

Share this post


Link to post
Share on other sites

When I use https on my C2 I get to it via https://c2.mysecretsite.com I don't use port 8080

I am running this command in roots crontab @ reboot

/root/web/c2_community-linux-64 -hostname c2.mysecretsite.com -db /root/web/c2.db -https

If that helps. 

A

Share this post


Link to post
Share on other sites
8 hours ago, Audrick said:

When I use https on my C2 I get to it via https://c2.mysecretsite.com I don't use port 8080

I am running this command in roots crontab @ reboot

/root/web/c2_community-linux-64 -hostname c2.mysecretsite.com -db /root/web/c2.db -https

If that helps. 

A

That's what I had tried but

image.png.0879c2df7097031c1dc12f54ab4f236b.png

Share this post


Link to post
Share on other sites

When you run CloudC2 in SSL mode, it requires port 80 and 443.

Going by your screenshot, something has already taken up port 80 on your VPS.

 

You can check what's running on port 80 using:

netstat -tulpn | grep :80

 

If your VPS complains about netstat not being installed, you may need to install net-tools aswell.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...