OpenSSL generate_host_certificate(): Use config.privoxy.org as Common Name
authorFabian Keil <fk@fabiankeil.de>
Mon, 15 Mar 2021 09:34:27 +0000 (10:34 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 15 Mar 2021 14:41:23 +0000 (15:41 +0100)
commit7fb2856b4d81f1a6c63054cc8a002b9aa3a5fb69
treec2eb2bf1042d1c135a98924c5e6660617fe9cb62
parent81f1eb11450d376cdabf33683497ddbe50bd0497
OpenSSL generate_host_certificate(): Use config.privoxy.org as Common Name

... Org and Org Unit if the real host name is too long to
get accepted by OpenSSL.

Prevents failures like:
2021-03-15 10:04:34.318 802816f00 Error: X509 subject name (code: CN, val: only-d-pmjr9f4mclevwwl2mwckreicm8k1afzk-1615774207025.nstool.netease.com) error: error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too

Clients should only care about the Subject Alternative Name
anyway and we can continue to use the real host name for it.

Reported by Miles Wen on privoxy-users@.
openssl.c