from mindio_ttp.framework_ttp import tft_start_controller, tft_init_processor tft_start_controller(bind_ip: str, port: int, enable_tls=False, tls_info='') tft_init_processor(rank: int, world_size: int, enable_local_copy: bool, enable_tls=False, tls_info='', enable_uce=True, enable_arf=False)
from mindio_ttp.framework_ttp import tft_start_controller, tft_init_processor, tft_register_decrypt_handler #In tls_info, use semicolons (;) to separate different fields and commas (,) to separate files. tls_info = r"( tlsCert: /etc/ssl/certs/cert.pem; tlsCrlPath: /etc/ssl/crl/; tlsCaPath: /etc/ssl/ca/; tlsCaFile: ca_cert_1.pem, ca_cert_2.pem; tlsCrlFile: crl_1.pem, crl_2.pem; tlsPk: private key; tlsPkPwd: private key pwd; packagePath: /etc/ssl/ )" # If the tlsPkPwd password is in ciphertext, register a password decryption function. tft_register_decrypt_handler(user_decrypt_callback) tft_start_controller(bind_ip: str, port: int, enable_tls=True, tls_info=tls_info) tft_init_processor(rank: int, world_size: int, enable_local_copy: bool, enable_tls=True, tls_info=tls_info, enable_uce=True, enable_arf=False)
Field |
Description |
Required or Not |
|---|---|---|
tlsCert |
Server certificate |
Yes |
tlsCaPath |
Path for storing the CA certificate |
Yes |
tlsCaFile |
CA certificate list |
Yes |
tlsCrlPath |
Path for storing the CRL |
No |
tlsCrlFile |
CRL |
No |
tlsPk |
Private key |
Yes |
tlsPkPwd |
Private key password |
Yes |
packagePath |
OpenSSL library path |
Yes |
Certificate security requirements: