Added support for privateKeyPath.