Updating openssl in python 2.7

Please refer to http://rkulla.blogspot.kr/2014/03/the-path-to-homebrew.html After upgrading openssl to 1.0.1j by homebrew on MAC, but system python still referred to old version 0.9.8. It turned out the python referred to openssl. So I have installed new python with brewed openssl and finished this issue on Mac, not yet Ubuntu. On Mac OS X version 10.10 and … Read more

Passing CSR distinguished-name fields as parameters to OpenSSL

Pass the subject via the “-subj” argument: openssl req -new -key <private key file> -out <CSR output file> -subj “/C=<Country Name>/ST=<State>/L=<Locality Name>/O=<Organization Name>/CN=<Common Name>” Note that if you want to have OpenSSL build the subject string for you, you can create the CSR as you normally would, and then execute the command to self-sign it. … Read more

ModuleNotFoundError: No module named ‘OpenSSL’

The OpenSSL module comes from the pyOpenSSL library. You can install it with Pip using a command like: pip install pyOpenSSL If it fails due to missing dependencies, see the instructions on installing pyOpenSSL’s dependencies in this answer to “How to install OpenSSL for Python”. (Also, as with all pip installs, depending upon your environment, … Read more

cURL OpenSSL error error:0308010C:digital envelope routines::unsupported

Meta: this isn’t really programming or development, and would probably be better on superuser or maybe security.SX, but this is issue is likely to become more common as OpenSSL 3.0 spreads and I wanted to get the answer out. OpenSSL 3.0.x (and up) by default doesn’t support old/insecure algorithms, but until recently most software that … Read more

NSS: client certificate not found (nickname not specified)?

Try prefixing the certificate filename with “./”, or using the full path. From the curl manpage: If curl is built against the NSS SSL library then this option [–cert] can tell curl the nickname of the certificate to use within the NSS database defined by the environment variable SSL_DIR (or by default /etc/pki/nssdb). If the … Read more

Programmatically verify certificate chain using OpenSSL API

You can use the normal validation routines (see How do you verify a public key was issued by your private CA?), like the -verify function in OpenSSL does. You need to create a lookup method (X509_LOOKUP_METHOD) like X509_LOOKUP_file(), but which works with a character string instead of a filename. The code for X509_LOOKUP_buffer() is as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)