SSL: WRONG_VERSION_NUMBER error using pymysql - pymysql

I am trying to connect my python client to a mariadb server using SSL.
The mariadb on the server was compiled with YaSSL, so the Supported TLS Protocol Versions are TLSv1 or TLSv1.1.
The client runs on a steam box with arch Linux as os.
The python version is: 3.10.2
The pymysql version is: 1.0.2 (from "print pymysql.Version")
I have installed pymysql via pip.
When I connect without SSL, it works fine.
When I connect using SSL, I get this error:
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'python.fairtragen.de' ([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997))")
When I connect via mariadb-client directly it works. I have used this command:
mysql --ssl-cert="/home/deck/client-cert.pem" --ssl-key="/home/deck/client-key.pem" -utest -hmyserver -pmypassword
Can anybody help me? Thank you!

Related

Can't install putty when I'm trying to connect it with vps

I'm trying to connect putty with VPS, but I'm facing difficulties when I installed putty, I'm getting this error
I'm using Ubuntu 16.04, and apparently the sources.list can't be readable
Please help!

Sequel Pro: Can't connect to MySQL server on '127.0.0.1' (61) using mariadb installed via homebrew

I'm trying to set up a wordpress environment. Using homebrew I've installed laravel valet and mariadb, and am using sequel pro to manage databases.
Right now, I can start mariadb using brew services start mariadb.
However, when I go to sequel pro and enter 127.0.0.1 and username: root for my credentials, I get the error "Can't connect to MySQL server on '127.0.0.1' (61)"
I can't figure out where my issue is. Can anybody help me troubleshoot?

Creating Python 3.4 Environment in Anaconda

I have Python 2.7 Anaconda 64 bit on Windows 7.
I want to create a Python 3.4 environment. So at the command I typed:
conda create -n py34 python=3.4 anaconda
I get the following problems
Fetching package metadata: Could not connect to https://repo.continuum.io/pkgs/pro/noarch/
.Could not connect to https://repo.continuum.io/pkgs/pro/win-64/
.Could not connect to https://repo.continuum.io/pkgs/free/noarch/
.Could not connect to https://repo.continuum.io/pkgs/free/win-64/
it then runs through all the packages and gives another error:
Could not connect to https://repo.continuum.io/pkgs/free/win-64/menuinst-1.0.4-py34_0.tar.bz2
Error: Connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590): https://repo.continuum.io/pkgs/fre
e/win-64/menuinst-1.0.4-py34_0.tar.bz2
Then of course when I type
activate py34
I get:
No environment named "py34" exists in C:\Users\martbar\AppData\Local\Continuum\Anaconda\envs
any ideas what could be the issue? I am on a corporate PC but when I looked at the firewall on my PC it said it was off.
The underlying connection to https://repo.continuum.io is not passing a certificate verification test. You can go there in your browser to see if your OS may be missing this certificate. If so, then run Windows Update and look for a "Update for Root Certificates for Windows 7" entry that you can install.

Upgraded mongo to 2.6 using home-brew and now can't connect

Running OSX 10.9.2, I just ran brew upgrade mongo which upgraded my mongo to version 2.6
As per the instructions I've run
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
But now when I run mongo it says
MongoDB shell version: 2.6.0
connecting to: test
2014-05-05T10:07:22.769+1000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
2014-05-05T10:07:22.770+1000 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Things I've tried:
I've seen this covered on other SX questions and people have suggested creating a /data/db folder but this wasn't needed previously and I don't want to lose the data from my old instance of mongo. Regardless, I tried it, and chowned it to allow read/write from my user account, but that made no difference. (FYI my data lives in /usr/local/var/mongodb/ which is typical I believe for OSX.)
A lot of the other questions also assume Linux rather than Mac, or they wade off into PHP land which is not relevant to me.
I've also tried rebooting my Mac.
I fixed it by forcing home-brew to restart it.
brew services restart mongodb
and voila
$ mongo
MongoDB shell version: 2.6.0
connecting to: test
>
now works a treat.

Magento: Installation issue in Ubuntu

PHP & MySql configuration are :
**MySql**
Server: Localhost via UNIX socket
Server version: 5.1.63-0ubuntu0.11.10.1
Protocol version: 10
User: root#localhost
MySQL charset: UTF-8 Unicode (utf8)
**Web Server**
Apache/2.2.20 (Ubuntu)
MySQL client version: 5.1.63
PHP extension: mysqli Documentation
I am using Ubuntu 11.10
When I tried to install Magento 1.7.0.0 I got following error message :
The requested URL /magento17/index.php/install/ was not found on this server.
Can somebody suggest me to solve this problem?
If you are install from root terminal, you can use sandard debian commands for packages. You can try find reason why it is not installed correctly. First try to find dependencies and that are installed correctly:
dpkg -s magento17 | grep Depends:
when you see the result try to find if all dependencies are installed in correct version like on this example:
dpkg -l apache2.2-comm
if it is correct you will see answer like4 this:
ii apache2.2-comm 2.2.16-6+squee Apache HTTP Server common files
If it is all correct installed than you should try to check if problem is in using correct relative link!
try to use
magento17/index.php/install/

Resources