Is it possible to install multiple RSA certificates for one website with Apache (same domains)? My predicament is this:
We have an old client that communicates with our webserver through a custom C++ application (not a web browser), and it is absolutely impossible for us to update it to use a modern cipher for modern SSL certificates. It is hardcoded to use SHA1 and like I said, it can not be updated.
On the same server that this client device communicates with also lives a website. We need to update things so that when people use a web browser and navigate to our site, we are issuing a modern SSL cert. But, when the old client device is communicating with this server's api over https, we want to secure it using our old sha1 certificate. (Yes, yes, I know...)
I was led to believe that with Apache, you could simply add additional SSLCertificateFile & SSLCertifcateKeyFile entries for each certificate, and then the underlying TSL implementation on clients would handle negotiating which certificate it gets. But upon further testing and reading the last sentence on the documentation for these, I'm not so sure. It says:
This directive can be used up to three times (referencing different filenames) when both a RSA, a DSA, and an ECC based server certificate is used in parallel.
I'm supposing my question is answered right there, but since it does not explicitly state you can't use two RSA certificates for the purpose I'm seeking and that we can't be the only ones to have this problem (unable to update legacy client), I have to ask.
Thank you : )
Problem:To get the sha1sum value of a file in MAC OS i run the following command
The error I got is following
perl version 5.18.2 can't run /usr/bin/sha1sum. Try the alternative(s):/usr/bin/sha1sum5.16 (uses perl 5.16)Run "man perl" for more information about multiple version support inMac OS X.
I tried to install textutils and coreutils, but both failed. Can anyone suggest me how I can resolve the issue ? Thanks in advance.
I try to calculate sha1 for encrypted file (file.gpg) using Python3 code.
I test two func.
import hashlibimport gnupgdef sha1sum(filename): h = hashlib.sha1() b = bytearray(128*1024) mv = memoryview(b) with open(filename, 'rb', buffering=0) as f: for n in iter(lambda : f.readinto(mv), 0): h.update(mv[:n]) return h.hexdigest()def sha1_checksum(filename, block_size=65536): sha1 = hashlib.sha1() with open(filename, 'rb') as f: for block in iter(lambda: f.read(block_size), b''): sha1.update(block) return sha1.hexdigest()original = open('file.bin', 'rb')gpg = gnupg.GPG()gpg.encoding = 'utf-8'encrypt = gpg.encrypt_file(original, recipients=None, passphrase=password, symmetric='AES256', output=file)sum = sha1sum(file)sum = sha1_checksum(file)
First start of the script
Second start of the script
Does sha1sum() or sha1_checksum() wrong?
Or file encryption gives different file.gpg ?
Im trying to integrate using SOAP to a web service but I'm getting stucked in the authorization part, and more specifically when creating sha1 encrypted password. Documentation for this specific authorization can be found at https://www.beautyfort.com/api/docs/AuthHeader-t1
I have been searching the net trying to find different ways to create the password but none seems to generate the same password as the example in the documentation page.
string testDateString = "2015-07-08T11:31:53+01:00";string testNonce = "186269";string testSecret = "Ok4IWYLBHbKn8juM1gFPvQxadieZmS2";SHA1CryptoServiceProvider sha1Hasher = new SHA1CryptoServiceProvider();byte hashedDataBytes = sha1Hasher.ComputeHash(Encoding.UTF8.GetBytes(testNonce + testDateString + testSecret));string Sha1Password = Convert.ToBase64String(hashedDataBytes);
The input variables is from documentation page. According to the documentation the password should get the value "ZDg3MTZiZTgwYTMwYWY4Nzc4OGFjMmZhYjA5YzM3MTdlYmQ1M2ZkMw=="but the code I am using is generating "2HFr6Aowr4d4isL6sJw3F+vVP9M=".
Anyone have a bright idea of what I am doing wrong?
I'm having trouble generating code MD5 ,my hash code generating is :6d443e99c80115807f73b3a18530aeacand my Code SHA256 isa5f80ea7ac52cb818a5a7332155f802fc9e677de29c351438f7cb266f76ddfe2when this code to convert md5 ,It gets MD5 :6d443e99c80115807f73b3a18530aeacbut i cant MD5 to convert this SHA256 please help me