@@ -7030,6 +7030,12 @@ <h2>
7030
7030
certificate; a browser SHOULD select SHA-256 [[!FIPS-180-4]]
7031
7031
if a hash algorithm is needed.
7032
7032
</p>
7033
+ <p>
7034
+ The time used when generating a certificate is of type
7035
+ {{DOMHighResTimeStamp}}, which means that it is a number
7036
+ relative to the time origin as specified in [[HR-TIME]],
7037
+ or "now" if the time origin is undefined.
7038
+ </p>
7033
7039
<p>
7034
7040
The resulting certificate MUST NOT include information that
7035
7041
can be linked to a user or <a>user agent</a>. Randomized
@@ -7049,7 +7055,7 @@ <h2>
7049
7055
</li>
7050
7056
<li>
7051
7057
<p>
7052
- Let <var>expires</var> be a {{EpochTimeStamp }} value of
7058
+ Let <var>expires</var> be a {{DOMHighResTimeStamp }} value of
7053
7059
2592000000.
7054
7060
</p>
7055
7061
<div class="note">
@@ -7235,21 +7241,28 @@ <h2>
7235
7241
{{RTCPeerConnection/generateCertificate}}.
7236
7242
</p>
7237
7243
<pre class="idl">dictionary RTCCertificateExpiration {
7238
- [EnforceRange] EpochTimeStamp expires;
7244
+ [EnforceRange] DOMHighResTimeStamp expires;
7239
7245
};</pre>
7240
7246
<dl data-link-for="RTCCertificateExpiration" data-dfn-for=
7241
7247
"RTCCertificateExpiration" class="methods">
7242
7248
<dt data-tests=
7243
7249
"RTCPeerConnection-generateCertificate.html,RTCCertificate.html">
7244
- <dfn>expires</dfn>, of type {{EpochTimeStamp }}
7250
+ <dfn>expires</dfn>, of type {{DOMHighResTimeStamp }}
7245
7251
</dt>
7246
7252
<dd>
7247
7253
<p>
7248
7254
An optional {{expires}} attribute MAY be added to the
7249
7255
definition of the algorithm that is passed to
7250
7256
{{RTCPeerConnection/generateCertificate}}. If this parameter is
7251
7257
present it indicates the maximum time that the
7252
- {{RTCCertificate}} is valid for relative to the current time.
7258
+ {{RTCCertificate}} is valid for.
7259
+ </p>
7260
+ <p class="note">
7261
+ The expires attribute is relative to the time origin.
7262
+ Previous versions of this specification claimed that it was
7263
+ relative to the current time, but the definition of
7264
+ {{DOMHighResTimeStamp}} precludes this interpretation.
7265
+ The difference should not matter much in practice.
7253
7266
</p>
7254
7267
</dd>
7255
7268
</dl>
0 commit comments