mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #11885 - jdm:openssl-serial, r=ConnorGBrewster
Fix common OpenSSL intermittent failure on automated builders
OpenSSL requires that the digits of the serial number for the generated certs contain an even number of digits. The recent change in sslutils (b388d6b14d
) does not fulfill this requirement. I'll be making the same PR upstream to address that, but this will get us out of the woods locally.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11858 and fix #11859
- [X] These changes do not require tests because there's no automated testing for the SSL cert generation
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11885)
<!-- Reviewable:end -->
This commit is contained in:
commit
3be7303242
1 changed files with 4 additions and 1 deletions
|
@ -252,7 +252,10 @@ class OpenSSLEnvironment(object):
|
|||
with open(path("index.txt"), "w"):
|
||||
pass
|
||||
with open(path("serial"), "w") as f:
|
||||
f.write(str(random.randint(0, 1000000)))
|
||||
serial = str(random.randint(0, 1000000))
|
||||
if len(serial) % 2:
|
||||
serial = "0" + serial
|
||||
f.write(serial)
|
||||
|
||||
self.path = path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue