<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div><b class="elementToProof">A#) openssl req -x509 -nodes -newkey rsa:4096 -keyout private.key -out public.key</b></div>
<div><b><br>
</b></div>
<div><b>B#) openssl smime -encrypt -binary -aes-256-cbc -in message.txt -out encrypted.dat -outform DER public.key</b></div>
<div><b><br>
</b></div>
<div><b>C#) openssl smime -decrypt -in encrypted.dat -binary -inform DEM -inkey private.key -out decrypted.txt</b></div>
<div><br>
</div>
<div><u>How can I complete step A#), so that step B#)  will work, without involving a Certificate Request, which requires</u></div>
<div><u>a non-blank two digit nation code,</u></div>
<div><br>
</div>
<div><u>'You can set an empty issuer/subject DN, or use "-keyid" to avoid copying</u></div>
<div><u>these into the CMS message.'</u></div>
<div><br>
</div>
<div>Can someone please update my included A#), B#) or C#) instructions, included above here, to acheive
</div>
<div>this suggestion, so that no certificate information is put into 'encrypted.dat', including the nation,</div>
<div>so that 'encrypted.dat' includes no plain text whatsoever, and so that A#) + B#) + C#) all work</div>
<div class="elementToProof">as desired, for small, medium and large files, of 'message.txt'?  I am struggling to correct what I
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
have done so far, so that there are no errors, and so that all the steps work: <b>
(generation of a private and public key,</b></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b>encryption of the file, and decrypt of the file)</b>.  ?<br>
</div>
</body>
</html>