haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

Basic (SHA256/SHA384/SHA512/SHA224) support for RSASSA-PSS #76

Closed wangbj closed 7 years ago

wangbj commented 8 years ago

newer openssl can create certificates signed with RSASSA-PSS, this change allow handling such kind of certificates.

wangbj commented 7 years ago

Thanks, added the missing toASN1 instance, please note due to padding, toASN1 . fromASN1 not necessarily equals to id for RSASSA:PSS, always assumes -sigopt rsa_pss_saltlen:-1 (for encoding).

vincenthz commented 7 years ago

Looking good now thanks !