Closed Pablo-offsec closed 7 months ago
Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/
Doing the same as you seem to have done (i.e. creating a self-signed and editing the bind
line with the new certificate in the haproxy conf file, Caldera uses the correct certificate and displays no warning on my instance.
Your local.yml
looks fine to me, but... Why did you create it by copying default.yml
? Did you maybe not remove the insecure
flag?
I was reading some blog somewhere where they created a copy of default.yml and renamed it to local.yml.
But I tried cloning caldera again and adding ssl in default.yml and then letting caldera generate the local.yml with credentials for caldera. When I ran the server for the first time, it was still using insecure_certificate.pem
but when I restarted the server, I see no errors now and I also made changes in hook.py to confirm that my new self signed certificate is being used.
Not sure why I was getting an error in the first place, maybe I should let caldera create the local.yml
file rather than copy pasting it myself.
I don't need any help on this at the moment and thanks for taking a look into this. Will reach out again if I need any help.
Hey team,
I am having trouble with the SSL plugin, hoping you can help me out.
I have followed the steps from the documentation to enable SSL plugin as stated here: https://caldera.readthedocs.io/en/latest/Plugin-library.html#ssl
Setup:
Version: 4.2.0
I generated a new self signed certificate using the same command as mentioned in the doc:
openssl req -x509 -newkey rsa:4096 -out conf/certificate.pem -keyout conf/certificate.pem -nodes
and I have this new cert in the following path:plugins/ssl/conf/certificate.pem.
I also have a haproxy.conf file in the same folder and here are the contents of the conf file:
so I am using the self signed certificate for HTTPS connection.
As far as caldera conf goes, I have made a copy of the default.yml file to local.yml file and added ssl in the plugins. Here are the contents of the local.yml file under
/conf
.Now the setup works as expected and I do see SSL enabled but I get a warning:
Insecure SSL private key and certificate in use. Consider generating and using your own to improve security. Please see documentation.
Why am I getting this error? Do I need to change something else for caldera to start using my self signed cert?
Debugging
Out of curiosity, I removed the
insecure_certificate.pem
file and renamed thecertificate.pem
toinsecure_certificate.pem
. I also added a new line to print the server certificate in hook.py under method _check_using_default_cert():To my surprise, the server certificate is still the same as the insecure_certificate which I have deleted, so is this value stored somewhere or am I missing something?
Can you help me out here.