Cannot send webhook from AMS to a server which is using self-signed SSL certificate #6022
Answered
by
lastpeony
yashtandon113
asked this question in
FAQs
-
When sending a https webhook from AMS to a server that is using a self-signed SSL certificate, the connection fails due to Tomcat not trusting the certificate. Is their any solution for this? |
Beta Was this translation helpful? Give feedback.
Answered by
lastpeony
Jan 9, 2024
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yashtandon113
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to create a truststore add your certificate file to it and then pass the truststore with its password as JVM argument to antmedia service for tomcat to trust the certificate and send succesfull webhook.
Here are the steps:
1-) Download and save your certificate file as yourCertificate.crt to the AMS server home directory. For this you can use wget or directly copy from your local with scp
2-) Run this command
keytool -importcert -file yourCertificate.crt -keystore truststore.jks -alias someAlias
You dont need to edit alias.
This will start a process of creating truststore.jks file. Set your password and create the file.
3-) Go to
/etc/systemd/system/
directory.Open antmedia.serv…