andris9/pem — pull request #24 by detj (2014-11-28 14:33:08+00:00)
Title: getModulus() will now accept Buffers

If the certificate parameter was a Buffer earlier, it would throw an error and exit. This patch checks if it is a Buffer and converts it into String for compatibility.

By default `fs.readFile`'s encoding is Buffer, so this could help in case the user forgets to properly encode.

All test passed