You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In NVFlare Dashboard, if using a server name longer than 64 characters, the certificate fails to generate as well as console and startup kit. The zip with Flare Console and the zip with Server Startup Kit cannot be downloaded.
Traceback
Traceback (most recent call last):
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/provisioner.py", line 110, in provision
b.build(project, ctx)
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/impl/cert.py", line 246, in build
self._build_write_cert_pair(server, CertFileBasename.SERVER, ctx)
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/impl/cert.py", line 176, in _build_write_cert_pair
pri_key, cert = self.get_pri_key_cert(participant)
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/impl/cert.py", line 267, in get_pri_key_cert
cert = self._generate_cert(
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/impl/cert.py", line 299, in _generate_cert
return generate_cert(
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/utils.py", line 52, in generate_cert
x509_subject = x509_name(subject.name, subject.org, subject.role)
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/nvflare/lighter/utils.py", line 117, in x509_name
name = [x509.NameAttribute(NameOID.COMMON_NAME, cn_name)]
File "/home/stevo/.pyenv/versions/3.9.19/envs/ai4os-nvflare-2.6.0/lib/python3.9/site-packages/cryptography/x509/name.py", line 162, in __init__
raise ValueError(msg)
ValueError: Attribute's length must be >= 1 and <= 64, but it was 78
To Reproduce
Steps to reproduce the behavior:
Configure a project in NVFlare Dashboard UI.
In Server Configuration screen, set the Server (DNS name) longer than 64 characters.
Freeze project
click Download FLARE Console
click Dowload Server Startup Kit (primary)
Expected behavior
The requested zip file starts downloading.
Desktop (please complete the following information):
OS: [ubuntu 22.04]
Python Version [3.9.19]
NVFlare Version [2.6]
The text was updated successfully, but these errors were encountered:
Similar to #3093
Describe the bug
In NVFlare Dashboard, if using a server name longer than 64 characters, the certificate fails to generate as well as console and startup kit. The zip with Flare Console and the zip with Server Startup Kit cannot be downloaded.
Traceback
To Reproduce
Steps to reproduce the behavior:
Server Configuration
screen, set theServer (DNS name)
longer than 64 characters.Download FLARE Console
Dowload Server Startup Kit (primary)
Expected behavior
The requested zip file starts downloading.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: