pub fn rehash(dir: impl AsRef<Path>) -> Result<()>
Expand description
Rehashes a directory
Removes hash symlinks and broken symlinks (unlike openssl rehash) in the directory, then for each certificate (or symlink to a certificate) in the directory, creates a SHA1 hash symlink with a relative path to the certificate.
Returns an error if there are any I/O failures due to filesystem access or certificate deserialization
NOTE: CRL hash symlinks are not yet supported
ยงExamples
openssl_rehash::rehash("/etc/ssl/certs").unwrap();