I want to make this openssl statement in java possible with (for example with bouncy castle)
openssl req -new -sub "newsub" -key dummy_key.pem -out request.pem
All examples which i found are creating some keypair. i want to use existing one in my java code!
And then i want to generate a self signed crt with openssl i would do this:
openssl x509 -req -CAkey "ca_cert_key" -CA "ca_cert" -days 365 -set_serial "serial" -extfile tempclient.info -in request.pem -out cert.pem
I would be happy for any help!