<div dir="ltr">Thanks a lot for your reply! Merry Christmas!<br><div><div><br></div><div><a class="gmail_plusreply" id="m_1380141081388625801plusReplyChip-7" href="mailto:Michael.Wojcik@microfocus.com" target="_blank">@Michael Wojcik</a>   Apologies. I clicked the wrong reply button.</div><div><br></div><div><a class="gmail_plusreply" id="m_1380141081388625801plusReplyChip-2" href="mailto:dev@ddvo.net" target="_blank">@David von Oheimb</a> I will update to a new version and try again. To append cert is to make sure new cert and old cert both exist in trust store, thus when server switches cert, it can be trusted by client.<br></div><div></div><div><br></div><div>@Jochen actually, the certs have different SN, which indeed is not consistent with the man doc. The thing that confuses me is that CURL (compiled with gnutls) and Golang works. <br></div><div>below is my ca.crt file, I am not sure where it went wrong, maybe just my wrong behavior?</div><div><br></div><div>```</div><div><br>-----BEGIN CERTIFICATE-----<br>MIIFdzCCA1+gAwIBAgIJAJcvKUQ0Bz4tMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNV<br>BAYTAlVTMQswCQYDVQQIDAJDQTESMBAGA1UEBwwJUGFsbyBBbHRvMQ8wDQYDVQQK<br>DAZWTXdhcmUxJDAiBgNVBAMMG25zeG1hbmFnZXIucGtzLnZtd2FyZS5sb2NhbDAe<br>Fw0yMDEyMTcwMDM2MjBaFw0zMDEyMTUwMDM2MjBaMGUxCzAJBgNVBAYTAlVTMQsw<br>CQYDVQQIDAJDQTESMBAGA1UEBwwJUGFsbyBBbHRvMQ8wDQYDVQQKDAZWTXdhcmUx<br>JDAiBgNVBAMMG25zeG1hbmFnZXIucGtzLnZtd2FyZS5sb2NhbDCCAiIwDQYJKoZI<br>hvcNAQEBBQADggIPADCCAgoCggIBAMC4EFsukdnrj26EYSaCCrvUtEhbi33wXHKi<br>6utmOe9r+M17Q0MArjJeEzklmrTkj+qKJCB4TgWFY2djJ+hA0a5I2eOn/0OjJ0c2<br>67FcqX7pq1JwYMSkwN4dQUbAN82xjQOcmj03PVjgLQSFXLfNxcfym0G2KtwkIg8K<br>V4JwC0L048BBu/EynA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qqp<br>cTey+etb2kVR83fp47g2hfgzCBKoTYdqC5G5kVarvO1+BsdKwApz+iElUqKfkRZo<br>NwHJp5KUauGKGrN2WY5yAMUq9iEsVlTBt+rsixtnRlP1yhGhc9DrLsKquOw03myL<br>hDISqFnOh+zVz10=<br>-----END CERTIFICATE-----</div><div><br></div><div>```<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Jochen Bern <<a href="mailto:Jochen.Bern@binect.de" target="_blank">Jochen.Bern@binect.de</a>> 于2020年12月24日周四 下午7:44写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 23.12.20 23:56, <a href="mailto:openssl-users-request@openssl.org" target="_blank">openssl-users-request@openssl.org</a> digested:<br>
> Message: 4<br>
> Date: Wed, 23 Dec 2020 23:56:44 +0100<br>
> From: David von Oheimb <<a href="mailto:dev@ddvo.net" target="_blank">dev@ddvo.net</a>><br>
[...]<br>
> Yet since both your old and new server cert are not expired and have the<br>
> same subject, keyIdentifier, and serial number,<br>
> and you appended the new server cert to your list, it is no surprise<br>
> that the certificate chain building algorithm will pick up the old one.<br>
> For efficiency reasons, no other (equally applicable) certificates will<br>
> be tried.<br>
<br>
To expand on the "*should* you actually do it like this" angle: I do not<br>
see any reason why the new server cert (SC) should have *the same serial<br>
number* (SN) as the old one.<br>
<br>
At least in the general case - where the CA and the server are run by<br>
different entities -, the CA wants(*) to be able to revoke old and new<br>
SC separately, and CRLs identify revoked certs exclusively by the<br>
issuing CA Cert (CC) and the revoked cert's SN.<br>
<br>
So, what *is* the rationale to reuse the SN? Do you have a<br>
"verification" mechanism somewhere that (cannot be updated in a timely<br>
manner for the new SC and) would protest a changed SN, but *not* the<br>
changed validity period (or, for that matter, fingerprint or CA<br>
signature)? Note that the mere thought already makes me put quote marks<br>
around "verification" ...<br>
<br>
Disclaimer: I'm *not* saying that merely using different SNs will make<br>
the problem you're currently experiencing disappear. In fact, I consider<br>
that rather unlikely, but it might be one contributing factor.<br>
<br>
(*) Scenario 1: Before the old SC expires, the CA finds out that it<br>
issued a new SC to an imposter, so they now want to revoke the new but<br>
not the old. Scenario 2: The old SC is found to have been leaked after<br>
the new one was already issued, so at least the server admin would<br>
prefer to have the old SC revoked but *not* the new one.<br>
<br>
Kind regards,<br>
-- <br>
Jochen Bern<br>
Systemingenieur<br>
<br>
Binect GmbH<br>
<br>
</blockquote></div></div></div>