Help with certificate (example needed)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help with certificate (example needed)

Luca Bertoncello
Hi

So, I think I found my problem... this should be by my self signed
certificate...
Unfortunately I couldn't find any example how can I force libpurple to accept
self signed certificates.

Can someone help me?

I got these debug information from libpurple too:

(17:41:49) buddyicon: Creating icon cache directory.
(17:41:49) buddyicon: Unable to create directory /dev/null/icons: Not a directory
(17:41:49) util: Writing file /dev/null/icons/d594f0bddbda85f2bd23e0c38983b7009b33aa31.jpg
(17:41:49) util: Error opening file /dev/null/icons/d594f0bddbda85f2bd23e0c38983b7009b33aa31.jpg.save for writing: Not a directory
(17:41:49) account: Connecting to account [hidden email].
(17:41:49) prefs: /purple/savedstatus/default changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/idleaway changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/isidleaway changed, scheduling save.
(17:41:49) connection: Connecting. gc = 0x90d9f70
(17:41:49) dnssrv: querying SRV record for lucabert.de: _xmpp-client._tcp.lucabert.de
(17:41:49) prefs: /purple/savedstatus/default changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/isidleaway changed, scheduling save.
(17:41:49) dnssrv: found 1 SRV entries
(17:41:49) dns: DNS query for 'lucabert.de' queued
(17:41:49) dns: Created new DNS child 22747, there are now 1 children.
(17:41:49) dns: Successfully sent DNS request to child 22747
(17:41:49) prefs: /plugins/gtk/libnotify/auto_loaded changed, scheduling save.
(17:41:49) dns: Got response for 'lucabert.de'
(17:41:49) dnsquery: IP resolved for lucabert.de
(17:41:49) proxy: Attempting connection to 2001:1608:10:24:3::1
(17:41:49) proxy: Connecting to lucabert.de:5222 with no proxy
(17:41:49) proxy: Connection in progress
(17:41:49) proxy: Connecting to lucabert.de:5222.
(17:41:49) proxy: Connected to lucabert.de:5222.
(17:41:49) jabber: Sending ([hidden email]): <?xml version='1.0' ?>
(17:41:49) jabber: Sending ([hidden email]): <stream:stream to='lucabert.de' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(17:41:49) jabber: Recv (414): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='lucabert.de' id='7bddab82-52c5-47c1-8884-a1570a1707fe' xml:lang='en' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></stream:features>
(17:41:49) jabber: Sending ([hidden email]): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(17:41:49) jabber: Recv (50): <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(17:41:49) nss: subject=E=[hidden email],CN=lucabert.de,OU=XMPP,O=Luca Bertoncello,L=Dresden,ST=Sachsen,C=DE issuer=E=[hidden email],CN=lucabert.de,OU=XMPP,O=Luca Bertoncello,L=Dresden,ST=Sachsen,C=DE
(17:41:49) certificate/x509/tls_cached: Starting verify for lucabert.de
(17:41:49) certificate/x509/tls_cached: Checking for cached cert...
(17:41:49) certificate/x509/tls_cached: ...Not in cache
(17:41:49) certificate/x509/tls_cached: Certificate for lucabert.de is self-signed.
(17:41:54) util: Writing file prefs.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
(17:41:54) util: Writing file accounts.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
(17:41:54) util: Writing file status.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
dns[22747]: nobody needs me... =(
(process:22744): pidgin-libnotify-plugin-DEBUG: Successfully wrote blacklist file to /home/lucabert/.config/indicators/messages/applications-blacklist/pidgin-libnotify

These "error creating directory /dev/null" is really curious...
Can someone explain me how can I set a right directory?

Thanks
Luca Bertoncello
([hidden email])

_______________________________________________
Devel mailing list
[hidden email]
https://pidgin.im/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with certificate (example needed)

Duncan Berriman-2
Looks like the default directory for your process is /dev/null so it can't write any of the files it needs to.?

Duncan

On Sat, Sep 24, 2016 at 4:46 PM, Luca Bertoncello <[hidden email]> wrote:
Hi

So, I think I found my problem... this should be by my self signed
certificate...
Unfortunately I couldn't find any example how can I force libpurple to accept
self signed certificates.

Can someone help me?

I got these debug information from libpurple too:

(17:41:49) buddyicon: Creating icon cache directory.
(17:41:49) buddyicon: Unable to create directory /dev/null/icons: Not a directory
(17:41:49) util: Writing file /dev/null/icons/d594f0bddbda85f2bd23e0c38983b7009b33aa31.jpg
(17:41:49) util: Error opening file /dev/null/icons/d594f0bddbda85f2bd23e0c38983b7009b33aa31.jpg.save for writing: Not a directory
(17:41:49) account: Connecting to account [hidden email].
(17:41:49) prefs: /purple/savedstatus/default changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/idleaway changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/isidleaway changed, scheduling save.
(17:41:49) connection: Connecting. gc = 0x90d9f70
(17:41:49) dnssrv: querying SRV record for lucabert.de: _xmpp-client._tcp.lucabert.de
(17:41:49) prefs: /purple/savedstatus/default changed, scheduling save.
(17:41:49) prefs: /purple/savedstatus/isidleaway changed, scheduling save.
(17:41:49) dnssrv: found 1 SRV entries
(17:41:49) dns: DNS query for 'lucabert.de' queued
(17:41:49) dns: Created new DNS child 22747, there are now 1 children.
(17:41:49) dns: Successfully sent DNS request to child 22747
(17:41:49) prefs: /plugins/gtk/libnotify/auto_loaded changed, scheduling save.
(17:41:49) dns: Got response for 'lucabert.de'
(17:41:49) dnsquery: IP resolved for lucabert.de
(17:41:49) proxy: Attempting connection to 2001:1608:10:24:3::1
(17:41:49) proxy: Connecting to lucabert.de:5222 with no proxy
(17:41:49) proxy: Connection in progress
(17:41:49) proxy: Connecting to lucabert.de:5222.
(17:41:49) proxy: Connected to lucabert.de:5222.
(17:41:49) jabber: Sending ([hidden email]): <?xml version='1.0' ?>
(17:41:49) jabber: Sending ([hidden email]): <stream:stream to='lucabert.de' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(17:41:49) jabber: Recv (414): <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0' from='lucabert.de' id='7bddab82-52c5-47c1-8884-a1570a1707fe' xml:lang='en' xmlns='jabber:client'><stream:features><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>SCRAM-SHA-1</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/></stream:features>
(17:41:49) jabber: Sending ([hidden email]): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(17:41:49) jabber: Recv (50): <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(17:41:49) nss: subject=E=[hidden email],CN=lucabert.de,OU=XMPP,O=Luca Bertoncello,L=Dresden,ST=Sachsen,C=DE issuer=E=[hidden email],CN=lucabert.de,OU=XMPP,O=Luca Bertoncello,L=Dresden,ST=Sachsen,C=DE
(17:41:49) certificate/x509/tls_cached: Starting verify for lucabert.de
(17:41:49) certificate/x509/tls_cached: Checking for cached cert...
(17:41:49) certificate/x509/tls_cached: ...Not in cache
(17:41:49) certificate/x509/tls_cached: Certificate for lucabert.de is self-signed.
(17:41:54) util: Writing file prefs.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
(17:41:54) util: Writing file accounts.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
(17:41:54) util: Writing file status.xml to directory /dev/null
(17:41:54) util: Error creating directory /dev/null: File exists
dns[22747]: nobody needs me... =(
(process:22744): pidgin-libnotify-plugin-DEBUG: Successfully wrote blacklist file to /home/lucabert/.config/indicators/messages/applications-blacklist/pidgin-libnotify

These "error creating directory /dev/null" is really curious...
Can someone explain me how can I set a right directory?

Thanks
Luca Bertoncello
([hidden email])

_______________________________________________
Devel mailing list
[hidden email]
https://pidgin.im/cgi-bin/mailman/listinfo/devel
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




_______________________________________________
Devel mailing list
[hidden email]
https://pidgin.im/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help with certificate (example needed)

Luca Bertoncello
Duncan Berriman <[hidden email]> schrieb:

> Looks like the default directory for your process is /dev/null so it can't
> write any of the files it needs to.?

Well, I solved my problem using a "real" certificate registered by CACert and
having the CA saved in my /etc/ssl/certs...

It's not really THE solution, but it works, for now...

Thanks
Luca Bertoncello
([hidden email])

_______________________________________________
Devel mailing list
[hidden email]
https://pidgin.im/cgi-bin/mailman/listinfo/devel
Loading...