Mailinglist Archive: opensuse-buildservice (136 mails)

< Previous Next >
Re: [opensuse-buildservice] 2.6 api not requesting any password

On 25 Aug 2015, at 15:56 , Adrian Schröter <adrian@xxxxxxx> wrote:

Can you try with curl?

$ curl -vk
* Trying
* Connected to ( port 443 (#0)

ah, you accessing it via the web interface route ....

did I something wrong?

Can be indeed considered as a bug. Right now, I can just recommend
to disable anonymous mode in the configuration

osc api -e /configuration

linux:~ # osc api -e /configuration
Certificate Verification Error: no commonName in peer certificate

I wasn’t able to find a way to convince osc to ignore that.

I found this

linux:~ # diff -u /usr/lib/python2.7/site-packages/osc/
--- /usr/lib/python2.7/site-packages/osc/ 2015-08-26
08:49:16.191985558 +0000
+++ /usr/lib/python2.7/site-packages/osc/ 2015-08-26
08:49:41.415984974 +0000
@@ -176,6 +176,7 @@
saved_session = None

def __init__(self, *args, **kwargs):
+ SSL.Connection.clientPostConnectionCheck = None
self.appname = kwargs.pop('appname', 'generic')
M2Crypto.m2urllib2.HTTPSHandler.__init__(self, *args, **kwargs)

then it works, dunno if there’s a better way

mit freundlichen Gruessen/with best regards,

Carsten Hoeger
Open-Xchange GmbH

Open-Xchange AG, Rollnerstr. 14, 90408 Nürnberg, Amtsgericht Nürnberg HRB 24738
Vorstand: Rafael Laguna de la Vera, Carsten Dirks
Aufsichtsratsvorsitzender: Richard Seibt

European Office: Open-Xchange GmbH, Martinstr. 41, D-57462 Olpe, Germany
Amtsgericht Siegen, HRB 8718, Geschäftsführer: Frank Hoberg, Martin Kauss

US Office: Open-Xchange. Inc., 530 Lytton Avenue, Palo Alto, CA 94301, USA

< Previous Next >