haskell-tls / hs-certificate

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

readCertificateStore of directory with certificate hashes as file names #112

Open fwalch opened 5 years ago

fwalch commented 5 years ago

The documentation for readCertificateStore says:

... directory (one certificate per file, file names are hashes from certificate).

The implementation of listDirectoryCerts, however, seems to explicitly ignore files names which are hashes from certificates:

isCert x = (not $ isPrefixOf "." x) && (not $ isHashedFile x)

Am I misunderstanding the documentation?

ocheron commented 5 years ago

Usually the hash-named files are symbolic links to other files in the same directory. So they can be ignored. But yes the comment is misleading.