<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1474908724135_4540" dir="ltr">That certainly helped me move along. Thank you!</div><div id="yui_3_16_0_ym19_1_1474908724135_4540" dir="ltr">Is there a place where the <i>genconf </i>file format is explained? It does not support everything in the openssl config file format. </div><div id="yui_3_16_0_ym19_1_1474908724135_4540" dir="ltr">I was wondering if a file could be specified instead of an ENVIRONMENT variable as well. </div><div id="yui_3_16_0_ym19_1_1474908724135_4540" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474908724135_4540" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1474908724135_4539"><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1474908724135_4707" style="display: block;">  <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1474908724135_4706"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1474908724135_4705"> <div dir="ltr" id="yui_3_16_0_ym19_1_1474908724135_4704"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1474908724135_4703"> <hr size="1" id="yui_3_16_0_ym19_1_1474908724135_4717"> <b><span style="font-weight:bold;">From:</span></b> Dr. Stephen Henson <steve@openssl.org><br> <b><span style="font-weight: bold;">To:</span></b> shanthi thomas <elizatom@yahoo.com>; openssl-users@openssl.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, September 10, 2016 6:20 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [openssl-users] openssl asn1parse using both -genstr and -genconf options<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1474908724135_4708"><br>On Sat, Sep 10, 2016, shanthi thomas wrote:<div class="yqt6913264206" id="yqtfd36340"><br clear="none"><br clear="none">> Hi,    I'm trying to use openssl asn1parse subprogram to encode an ASN1<br clear="none">> structure. Some of the data in the ASN1 structure is static and I was<br clear="none">> planning to use a CONF file as shown in the examples for this via the<br clear="none">> -genconf option. However some of the data I need to pass via a command line<br clear="none">> argument for which I was planning to use the -genstr option. However, I'm<br clear="none">> not sure how to use both the -genstr and the -genconf in a single command. I<br clear="none">> could find any examples of this either.  Can someone point me to any good<br clear="none">> examples on how to use both these options together?</div><br clear="none"><br clear="none">While you can use -genstr and -genconf together their use is rather limited<br clear="none">and probably wont do what you want.<br clear="none"><br clear="none">Instead I'd suggest passing values using environment variables and uses the<br clear="none">config file environment variable options to include them in the appropriate<br clear="none">places.<br clear="none"><br clear="none">Steve.<br clear="none">--<br clear="none">Dr Stephen N. Henson. OpenSSL project core developer.<br clear="none">Commercial tech support now available see: <a shape="rect" href="http://www.openssl.org/" target="_blank">http://www.openssl.org</a><div class="yqt6913264206" id="yqtfd35388"><br clear="none"></div><br><br></div> </div> </div>  </div></div></body></html>