@
yinmin 你说这个我搜了一下找到这个粗略的方法
https://www.redelijkheid.com/blog/2023/8/22/add-ca-certificates-to-python说是要转成 base64 ,我用这个代码转了
```
import base64
# Read the binary content of the .p12 file
with open('mitmproxy-ca-cert.p12', 'rb') as file:
binary_content = file.read()
# Encode the binary content to base64
base64_encoded_content = base64.b64encode(binary_content).decode('utf-8')
# Print the base64 encoded content
print(base64_encoded_content)
```
mitmproxy-ca-cert.p12 在这里
https://drive.google.com/file/d/1Ctuk6G-NSHlOCH30jP_uNhKzw-wRslGB/view?usp=sharing然后把 Python312\Lib\site-packages\certifi\cacert.pem 里最后的信息复制了一份,转出来的 base64 信息贴进去,但是肉眼可见格式不一致,实在不会弄了,没进行下去
```
# Issuer: CN=Telekom Security TLS RSA Root 2023 O=Deutsche Telekom Security GmbH
# Subject: CN=Telekom Security TLS RSA Root 2023 O=Deutsche Telekom Security GmbH
# Label: "Telekom Security TLS RSA Root 2023"
# Serial: 44676229530606711399881795178081572759
# MD5 Fingerprint: bf:5b:eb:54:40:cd:48:71:c4:20:8d:7d:de:0a:42:f2
# SHA1 Fingerprint: 54:d3:ac:b3:bd:57:56:f6:85:9d:ce:e5:c3:21:e2:d4:ad:83:d0:93
# SHA256 Fingerprint: ef:c6:5c:ad:bb:59:ad:b6:ef:e8:4d:a2:23:11:b3:56:24:b7:1b:3b:1e:a0:da:8b:66:55:17:4e:c8:97:86:46
-----BEGIN CERTIFICATE-----
转出来的 base64 信息贴在了这里,
-----END CERTIFICATE-----
```