Mailinglist Archive: opensuse-buildservice (136 mails)

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

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

Can you try with curl?

$ curl -vk https://172.16.210.154/person/Admin
* Trying 172.16.210.154...
* Connected to 172.16.210.154 (172.16.210.154) 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
hack(http://stackoverflow.com/questions/2319909/m2crypto-override-post-connection-check-of-hostname):

linux:~ # diff -u /usr/lib/python2.7/site-packages/osc/oscssl.py.orig
/usr/lib/python2.7/site-packages/osc/oscssl.py
--- /usr/lib/python2.7/site-packages/osc/oscssl.py.orig 2015-08-26
08:49:16.191985558 +0000
+++ /usr/lib/python2.7/site-packages/osc/oscssl.py 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 >