I need to convert a CSR file in PEM encoding to a DER encoded file.
This is the openssl command for that but I need to do it in Java without BouncyCastle.
openssl req -inform pem -outform der -in file_one.csr -out file_two.der
What is the equivalent code for this in Java?