glebd / cocoafob

A set of registration code generation and verification helpers for Obj-C, Ruby (Potion Store), PHP and FastSpring
Other
469 stars 57 forks source link

Update cocoafob.py #35

Closed R0uter closed 6 years ago

R0uter commented 6 years ago

Use sha1 instead of dss1 to avoid 'ValueError("No such digest method")'

According to man EVP_DigestInit:

The link between digests and signing algorithms was fixed in OpenSSL 1.0 and later, so now EVP_sha1() can be used with RSA and DSA. The legacy EVP_dss1() was removed in OpenSSL 1.1.0

now 'dss1' has been removed, 'sha1' can do the same thing.