<html >
   <head>
      <meta charset="utf-8">
      <style>
body,
.spm-email {
    font: 400 1rem / 1.5 "GB Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    overflow-y: hidden;
    color: var(--sds-color-text-neutral-primary, #2b2b2d);
    text-rendering: geometricprecision;
    -webkit-font-smoothing: antialiased;
    min-width: unset !important;
}

html[data-sds-mode="dark"] {
    background: none !important;
}

pre {
    word-break: initial;
    white-space: pre-wrap;
}

blockquote,
.spm-email blockquote {
    margin: 16px 0 0;
    padding: 16px 0 0;
    color: var(--sds-color-text-neutral-primary, #2b2b2d);
    border-top: 1px solid var(--sds-color-border-neutral-subtle, #6f6e6f);
}

.spm-quoted-email--title,
.spm-email .spm-quoted-email--title {
    width: auto;
    display: inline-block;
    margin-bottom: 16px;
    color: var(--sds-color-text-neutral-secondary, #575860);
    font-size: .875rem;
    line-height: 1.25rem;
}

.spm-email .spm-signature-block {
    margin-top: 24px;
}

.spm-signature-block p {
    margin: 0;
}

.spm-embedded-image:not([width], [style*="width"]) {
  max-inline-size: 100%;
  min-inline-size: 38px;
}

.spm-email hr,
hr {
    border: 0;
    height: 1px;
    background-color: var(--sds-color-border-inverted-minimal);
}
    
#iframeContentContainer {
    display: flow-root;
    width: 100%; 
    padding-bottom: 18px;
}</style>
   </head>
   <body class="spm-email"><div style="font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt;"><span style="font-size: 10.5pt;">Hal Murray wrote:</span><span style="font-size: 0.875rem; color: rgb(111, 110, 111);"></span></div><div><br></div><div>> This is the name from CN vs SAN tangle.</div><div>></div><div>> > commit fd749194f36d9795db234164a8943eadb064c5fc</div><div>> ></div><div>> > Author: Matt Selsky <matthew.selsky@twosigma.com></div><div>> ></div><div>> > Date: Tue Nov 10 01:29:28 2026 +0000</div><div>> ></div><div>> > ntpd/nts_client.c: RFC 8915 fixes for NTS-KE response parsing</div><div>></div><div>> RFC 8915 section 3 requires clients to follow RFC 6125 when checking</div><div>></div><div>> the NTS-KE server's identity, and RFC 6125 section 6.4.4 forbids</div><div>></div><div>> matching the subject Common Name when the certificate has DNS names</div><div>></div><div>> in its Subject Alternative Name. "Fix derecation warning from OpenSSL</div><div>></div><div>> 4.1.0-alpha1" set X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT so that a</div><div>></div><div>> self-signed test certificate would match by CN, which makes OpenSSL</div><div>></div><div>> accept a certificate whose CN, but none of whose DNS SANs, names the</div><div>></div><div>> server.</div><div>></div><div>></div><div>> Drop the flag. Without it, X509_check_host(3) documents that the CN</div><div>></div><div>> is still checked when a certificate has no DNS SANs. A test</div><div>></div><div>> certificate that relies on its CN needs the name added as a DNS SAN,</div><div>></div><div>> or the client's server line needs noval.</div><div>></div><div>> - SSL_set_hostflags(ssl, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS |</div><div>></div><div>> X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT);</div><div>></div><div>> + SSL_set_hostflags(ssl, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);</div><div>></div><div>> ------</div><div>></div><div>> Does anybody else use self signed certificates for testing on their local</div><div>></div><div>> LAN?</div><div><br></div><div><br></div><div>I use Let's Encrypt for my single polynymous machine.</div><div>My NTPsec install is probably lagging behind HEAD.</div><div><br></div><div><br></div><div>> I set things up ages ago, I got the host name into the CN slot and left</div><div>></div><div>> the SAN slot empty. If I'm the only one with this problem, then we should</div><div>></div><div>> add a note in NEWS and I'll figure out how to fix my stuff. If others</div><div>></div><div>> have the same problem, maybe we should put a warning in the next release</div><div>></div><div>> announcement and give others a release cycle to fix their stuff.</div><div>></div><div>> ------</div><div>></div><div>> From the above:</div><div>></div><div>> > Without it, X509_check_host(3) documents that the CN</div><div>></div><div>> > is still checked when a certificate has no DNS SANs</div><div>></div><div>> That sounds like my setup should work. But it doesn't. Is this a bug in</div><div>></div><div>> OpenSSL?</div><div>></div><div>> -------</div><div>></div><div>> Does anybody have a good recipe for making self signed certificates?</div><div><br></div><div><br></div><div>I had one I experimented with momentarily.</div><div>The Internet would eat it and still be hungry.</div><div><br></div><div>TLDW: I was trying to get the smallest possible working certificate.</div><div><br></div><div>The following is likely approaching it wrong.</div><div><br></div><div>$ cat >127.cnf <<<EEND</div><div>[req]</div><div>prompt=no</div><div>req_extensions     = v3_req, req_ext</div><div>distinguished_name = req_distinguished_name</div><div>[req_distinguished_name]</div><div>CN = Scotch</div><div><br></div><div>[v3_req]</div><div>keyUsage = keyEncipherment, dataEncipherment</div><div>extendedKeyUsage = serverAuth</div><div><br></div><div>[ req_ext ]</div><div>subjectAltName = @alt_names</div><div><br></div><div>[ alt_names ]</div><div>DNS.1 = localhost</div><div>DNS.2 = scotch.local</div><div>IP.1  = 127.0.0.1</div><div>IP.2  = ::1</div><div>EEND</div><div>$ openssl genpkey -algorithm ED25519 > 127.key</div><div>$ openssl req -new -out 127.csr -key 127.key -config 127.cnf</div><div>$ openssl x509 -req -days 735 -in 127.csr -signkey 127.key -out 127.crt</div><div><br></div>-30-
</body>
</html>