I have an RSA PRIVATE KEY in .pem format, following is the working code in PHP, not getting proper JAVA equivalent for this.
$bool = openssl_sign($message, $s