Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any trick to get around ssl certs? #2

Open
rchannel opened this issue Jan 5, 2016 · 7 comments
Open

Any trick to get around ssl certs? #2

rchannel opened this issue Jan 5, 2016 · 7 comments

Comments

@rchannel
Copy link

rchannel commented Jan 5, 2016

Error I am getting.

Computer says nooo. See logs for details.:
[Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

@sijis
Copy link
Owner

sijis commented Feb 19, 2016

Is that on the salt master?

@rchannel
Copy link
Author

No this it the error on the errbot terminal. Is there a way to pass a argument to not check certs/ssl

@sijis
Copy link
Owner

sijis commented Feb 21, 2016

In line #65 in salt.py, add this parameter to the pepper.Pepper statement
ignore_ssl_errors=True.
Let me know if that works.

@rchannel
Copy link
Author

Ok guessing it works, sorry it took forever to have free time to test. But now I am getting:
An error happened while processing a message ("!salt eagle test.ping"): Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/errbot/errBot.py", line 454, in _execute_and_send
reply = commands[cmd](mess, match) if match else commands[cmd](mess, args)
File "/usr/local/share/errbot/plugins/sijis/err-salt/salt.py", line 68, in salt
self.config['api_auth'])
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line 298, in login
'eauth': eauth}).get('return', [{}])[0]
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line 141, in req
raise PepperException('Authentication denied')
PepperException: Authentication denied
"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/errbot/errBot.py", line 454, in _execute_and_send
reply = commands[cmd](mess, match) if match else commands[cmd](mess, args)
File "/usr/local/share/errbot/plugins/sijis/err-salt/salt.py", line 68, in salt
self.config['api_auth'])
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line 298, in login
'eauth': eauth}).get('return', [{}])[0]
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line 141, in req
raise PepperException('Authentication denied')
PepperException: Authentication denied

My auth is:
'api_auth': 'pam',

@rchannel rchannel reopened this Mar 31, 2016
@sijis
Copy link
Owner

sijis commented Apr 1, 2016

Are the username and password correct in the config? There is a way to validate the creds via curl and it'd have to be done from where you bot lives.

I don't remember the curl command offhand but I'll poke around and see if I find it.

@rchannel
Copy link
Author

rchannel commented Apr 6, 2016

After restarting our salt-api service auth looks much better.

But after applying the In line #65 in salt.py, add this parameter to the
pepper.Pepper statement
ignore_ssl_errors=True.

10:44:23 INFO errbot.plugins.ACLS Matching ACL {} against
username @rick for command Salt:salt
10:44:23 INFO errbot.plugins.ACLS Check if salt is admin only
command.
10:44:23 INFO errbot.errBot Processing command 'salt' with
parameters 'eagle test.ping' from @rick
10:44:23 ERROR errbot.errBot An error happened while
processing a message ("!salt eagle test.ping"): Traceback (most recent call
last):
File "/usr/local/lib/python2.7/dist-packages/errbot/errBot.py", line 454,
in _execute_and_send
reply = commands[cmd](mess, match) if match else commands[cmd](mess,
args)
File "/usr/local/share/errbot/plugins/sijis/err-salt/salt.py", line 68,
in salt
self.config['api_auth'])
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line
298, in login
'eauth': eauth}).get('return', [{}])[0]
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line
150, in req
raise PepperException('Unable to parse the server response.')
PepperException: Unable to parse the server response.
"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/errbot/errBot.py", line 454,
in _execute_and_send
reply = commands[cmd](mess, match) if match else commands[cmd](mess,
args)
File "/usr/local/share/errbot/plugins/sijis/err-salt/salt.py", line 68,
in salt
self.config['api_auth'])
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line
298, in login
'eauth': eauth}).get('return', [{}])[0]
File "/usr/local/lib/python2.7/dist-packages/pepper/libpepper.py", line
150, in req
raise PepperException('Unable to parse the server response.')
PepperException: Unable to parse the server response.

On Fri, Apr 1, 2016 at 7:17 AM Sijis Aviles [email protected]
wrote:

Are the username and password correct in the config? There is a way to
validate the creds via curl and it'd have to be done from where you bot
lives.

I don't remember the curl command offhand but I'll poke around and see if
I find it.


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#2 (comment)

@rick
Copy link

rick commented Apr 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants