Hello I am creating a script to run to make new users, I am using PHP with cURL, The script is running without errors , but the user is not being created. I checked the logs within Openfire, and this is showing up
2015.07.27 08:05:15 index.jsp - Failed to fetch RSS feed: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: root certificate not trusted of [vanity2.jiveon.com]
2015.07.27 08:05:48 org.jivesoftware.openfire.session.LocalOutgoingServerSession - Error trying to connect to remote server: proxy.eu.jabber.org(DNS lookup: proxy.eu.jabber.org:5269): java.net.UnknownHostException: proxy.eu.jabber.org
2015.07.27 08:05:48 org.jivesoftware.openfire.session.LocalOutgoingServerSession - Fail to connect to proxy.eu.jabber.org for ourdomain.com
Here is the script I am using
$url = "http://jabber.ourname.com:9090/plugins/userService/userservice?"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,'type=add&secret=mykey&username=' . $username . '&password=' . $password . '&name=' . $fullname . 'email=' . $email . 'groups=office'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($ch);
Thanks for Any help or direction .