Jerry Yu
a69934f249
upgrade server9-bad-saltlen.crt
Upgrade scripts
```python
import subprocess
from asn1crypto import pem, x509,core
output_filename="server9-bad-saltlen.crt"
tmp_filename="server9-bad-saltlen.crt.tmp"
tmp1_filename="server9-bad-saltlen.crt.tmp1"
subprocess.check_call(rf''' openssl x509 -req -extfile server5.crt.openssl.v3_ext \
-passin "pass:PolarSSLTest" -CA test-ca.crt -CAkey test-ca.key \
-set_serial 24 -days 3650 \
-sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:max \
-sigopt rsa_mgf1_md:sha256 -sha256 \
-in server9.csr -out {output_filename}
''',shell=True)
with open(output_filename,'rb') as f:
_,_,der_bytes=pem.unarmor(f.read())
target_certificate=x509.Certificate.load(der_bytes)
with open(tmp_filename,'wb') as f:
f.write(target_certificate['tbs_certificate'].dump())
subprocess.check_call(rf'openssl dgst -sign test-ca.key -passin "pass:PolarSSLTest" \
-sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:32 \
-sigopt rsa_mgf1_md:sha256 -out {tmp1_filename} {tmp_filename}',
shell=True)
with open(tmp1_filename,'rb') as f:
signature_value= core.OctetBitString(f.read())
with open(output_filename,'wb') as f:
target_certificate['signature_value']=signature_value
f.write(pem.armor('CERTIFICATE',target_certificate.dump()))
```
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
2023-06-19 11:41:12 +08:00
..
2022-04-28 18:22:20 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-08-19 10:35:41 +02:00
2023-06-01 13:30:08 +08:00
2017-06-06 18:44:14 +02:00
2023-06-19 11:41:12 +08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-08-21 20:47:52 +02:00
2020-03-04 15:39:14 +01:00
2020-08-21 20:47:52 +02:00
2020-03-04 15:39:14 +01:00
2020-08-21 20:47:52 +02:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2019-07-10 16:46:34 +03:00
2020-03-04 15:39:14 +01:00
2019-06-03 17:46:56 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2019-07-10 16:46:34 +03:00
2019-06-03 17:46:56 +01:00
2017-06-06 18:44:13 +02:00
2019-06-03 17:46:56 +01:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:51:08 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:51:08 +08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:51:08 +08:00
2023-06-13 17:51:08 +08:00
2020-03-04 15:39:14 +01:00
2020-08-17 09:05:03 +02:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:51:08 +08:00
2020-03-04 15:39:14 +01:00
2021-04-01 14:18:31 +02:00
2021-04-01 14:18:31 +02:00
2020-03-04 15:39:14 +01:00
2022-10-25 20:07:49 +02:00
2015-04-15 13:50:29 +02:00
2014-04-04 16:42:44 +02:00
2013-08-16 14:00:52 +02:00
2013-08-16 14:00:52 +02:00
2023-04-18 16:58:22 +02:00
2019-11-05 15:32:53 +01:00
2013-08-16 14:00:52 +02:00
2013-08-16 14:00:52 +02:00
2013-08-16 14:00:52 +02:00
2013-08-16 14:00:52 +02:00
2023-04-18 16:58:22 +02:00
2013-08-16 14:00:52 +02:00
2023-04-18 16:58:22 +02:00
2013-08-16 14:00:52 +02:00
2023-04-18 16:58:22 +02:00
2019-11-05 15:32:53 +01:00
2013-10-10 15:11:33 +02:00
2013-10-10 15:11:33 +02:00
2013-10-10 15:11:33 +02:00
2013-10-10 15:11:33 +02:00
2023-04-18 16:58:22 +02:00
2013-10-10 15:11:33 +02:00
2023-04-18 16:58:22 +02:00
2013-10-10 15:11:33 +02:00
2013-07-08 17:32:26 +02:00
2013-07-08 17:32:26 +02:00
2013-07-08 17:32:26 +02:00
2013-07-08 17:32:26 +02:00
2018-03-22 18:01:18 -07:00
2018-03-22 18:01:18 -07:00
2018-03-22 18:01:18 -07:00
2018-03-22 18:01:18 -07:00
2018-03-22 18:01:18 -07:00
2018-03-22 18:01:18 -07:00
2013-07-08 17:32:26 +02:00
2013-07-08 17:32:26 +02:00
2013-07-08 17:32:26 +02:00
2014-03-19 16:50:59 +01:00
2023-05-02 16:38:57 +02:00
2013-07-08 17:32:26 +02:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2011-07-13 11:26:43 +00:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2011-07-13 11:26:43 +00:00
2009-07-05 11:30:16 +00:00
2009-07-05 11:30:16 +00:00
2009-07-05 11:30:16 +00:00
2009-07-05 11:30:16 +00:00
2014-01-17 20:41:32 +01:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2022-08-01 15:57:06 +01:00
2014-10-15 22:06:46 +02:00
2020-03-04 15:39:14 +01:00
2020-08-19 10:35:41 +02:00
2022-04-28 18:22:20 +01:00
2017-10-17 19:01:38 +02:00
2017-10-17 19:01:38 +02:00
2017-10-17 19:01:38 +02:00
2017-10-17 19:01:38 +02:00
2023-04-18 16:58:22 +02:00
2014-08-14 11:34:35 +02:00
2023-04-18 16:58:22 +02:00
2014-08-14 11:34:35 +02:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2019-07-10 16:46:34 +03:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-10-16 12:40:27 +03:00
2017-10-16 12:40:27 +03:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2020-03-04 15:39:14 +01:00
2017-10-17 15:53:32 +03:00
2017-10-17 15:53:32 +03:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2018-02-08 17:18:19 +08:00
2017-09-29 20:05:23 +01:00
2017-09-29 20:05:23 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2020-09-21 18:25:35 -07:00
2020-09-21 18:25:35 -07:00
2021-01-13 22:04:45 -08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2022-06-08 14:38:38 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2012-02-16 14:09:13 +00:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2023-04-18 16:58:22 +02:00
2020-03-04 15:39:14 +01:00
2013-09-12 11:57:01 +02:00
2023-04-18 16:58:22 +02:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2022-11-14 13:32:48 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2019-07-10 16:46:34 +03:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2011-07-13 11:26:43 +00:00
2019-06-03 17:46:56 +01:00
2020-08-17 12:14:00 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:06:37 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:06:37 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2023-06-13 17:38:24 +08:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2020-08-11 10:23:52 +02:00
2023-06-19 10:17:21 +08:00
2023-06-19 10:17:21 +08:00
2023-06-13 17:08:45 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2013-09-24 21:25:54 +02:00
2019-06-03 17:46:56 +01:00
2020-08-17 12:14:00 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:41:11 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2023-06-13 17:47:47 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:48:31 +08:00
2023-06-13 17:48:31 +08:00
2020-03-04 15:39:14 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2023-06-13 17:49:02 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2020-03-04 15:39:14 +01:00
2023-06-19 10:17:21 +08:00
2023-06-19 10:17:21 +08:00
2020-03-04 15:39:14 +01:00
2019-06-03 17:46:56 +01:00
2019-06-03 17:46:56 +01:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:39:02 +08:00
2023-06-13 17:42:04 +08:00
2023-06-13 17:42:04 +08:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2020-03-04 15:39:14 +01:00
2019-07-10 16:46:34 +03:00
2020-03-04 15:39:14 +01:00
2019-07-10 16:46:34 +03:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:39:02 +08:00
2020-03-04 15:39:14 +01:00
2023-05-10 12:12:40 +01:00
2019-06-03 17:46:56 +01:00
2023-06-19 11:41:12 +08:00
2023-06-13 17:39:02 +08:00
2023-06-13 17:39:02 +08:00
2019-07-09 16:48:09 +03:00
2020-08-17 09:05:03 +02:00
2020-08-17 09:05:03 +02:00
2020-05-27 21:55:08 +02:00
2023-06-13 17:45:39 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:45:39 +08:00
2023-06-13 17:45:39 +08:00
2020-03-04 15:39:14 +01:00
2023-06-13 17:45:39 +08:00
2023-06-13 17:45:39 +08:00
2020-03-04 15:39:14 +01:00