[openssl-users] Proper syntax for -header host switch

Jordan Brown openssl at jordan.maileater.net
Fri May 25 03:08:17 UTC 2018


On 5/24/2018 11:44 AM, Ben Wilson wrote:
> -header "Host" "ocsp.example.com"
> -header 'Host' 'ocsp.example.com'
> -header Host ocsp.example.com


I don't know anything about the option, but I do know shell syntax. 
Those three variants are identical when presented to the shell.

Quotes are only necessary - and only make a difference - if the string
has characters in it that are special to the shell.  Letters and periods
are not special to the shell.

In all three cases, the program will see three arguments:

    -header
    Host
    oscp.example.com

-- 
Jordan Brown, Oracle Solaris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20180524/6d2795d2/attachment.html>


More information about the openssl-users mailing list