private_key = serialization.load_pem_private_key( key_file.read(), password=None, backend=default_backend() ) # 待签名的数据 data = b'Hello, World!' # 使用PKCS1v15填充方案进行签名 signature = private_key.sign( data, padding.PKCS1v15(), hashes.SHA256() ) print("Signature:", signat...