<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Bonjour,<div class=""><br class=""></div><div class="">An X.509 certificate is:</div><div class=""><div class=""><br class=""></div><div class="">Certificate  ::=  SEQUENCE  {</div><div class="">        tbsCertificate       TBSCertificate,</div><div class="">        signatureAlgorithm   AlgorithmIdentifier,</div><div class="">        signatureValue       BIT STRING  }</div></div><div class=""><br class=""></div><div class="">What you produced with « openssl rsautl -sign » is the content of the « signatureValue » element (not its BIT STRING structure, only the inner content).</div><div class="">What is missing is all the rest, and it can’t be produced by the sole « openssl x509 … » command.</div><div class=""><br class=""></div><div class="">Please refine your question.</div><div class=""><br class=""><div class="">
<div class="">Cordialement,</div><div class="">Erwann Abalea</div><div class=""><br class=""></div><br class="Apple-interchange-newline">

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">Le 22 juil. 2015 à 11:17, Anirudh Raghunath <<a href="mailto:anirudhraghunath@rocketmail.com" class="">anirudhraghunath@rocketmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class=""><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" class=""><div id="yui_3_16_0_1_1437507453899_130158" class="">Hello,</div><div id="yui_3_16_0_1_1437507453899_130158" class=""><br class=""></div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class="">I have used rsault -sign option to sign a text file which gives me a binary file. I would like to convert this to X509 so that I can use it in a ssl handshake. I understand the command:</div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class="">openssl x509 -inform <format> -in <certfile> -out <cert.pem> </div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class="">is used. I want to know what the parameters would be for a binary input file.</div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class=""><br class=""></div><div id="yui_3_16_0_1_1437507453899_130158" dir="ltr" class="">Thanks in advance. </div></div></div>_______________________________________________<br class="">openssl-users mailing list<br class="">To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" class="">https://mta.openssl.org/mailman/listinfo/openssl-users</a><br class=""></div></blockquote></div><br class=""></div></body></html>