Create Certificate in OpenSSL via RPG-Program? Polly_Wants_A

​[[{“value”:”[SOLVED] Heyho,
when i do this command:”openssl req -newkey rsa-pss -new -nodes -x509 -days 3650 -pkeyopt rsa_keygen_bits:4096 -sigopt rsa_pss_saltlen:32 -keyout key.pem -out cert.pem”
in the qsh, it genereates a certificate, but it demands some input from me, Country, state, name, email, etc.
how I can I modify the command with the information it wants and just send it via qcmdexec()?
thanks for the help
FOUND IT:
https://www.freecodecamp.org/news/openssl-command-cheatsheet-b441be1e8c4a/
“Provide CSR subject info on a command line, rather than through interactive prompt.
openssl req -nodes -newkey rsa:[bits] -keyout example.key -out example.csr -subj “/C=UA/ST=Kharkov/L=Kharkov/O=Super Secure Company/OU=IT Department/CN=example.com”
submitted by /u/Polly_Wants_A[link][comments]”}]] Read More 

Leave a Reply

Verified by MonsterInsights