Hello @buffon_georges,
It looks like this might be related to the Intermediate Certificates that you have installed on the machine. Apple recently made some modifications here so Xcode might have created a new certificate without having the proper Intermediate Certificate installed.
You can verify this by looking at your Singing Certificate in Keychain Access, reviewing the "Authority Key Identifier" then ensuring that you have the correct "Apple Worldwide Developer Relations Certification Authority" certificate that has the matching "Subject Key Identifier". If this does not exist, you will not be able to Codesign. New certificates can be found at the below Apple site.
https://www.apple.com/certificateauthority/
I am not positive this is the issue without more information, but with what is available I would start searching here and share if this is not the issue.
Hopefully this helps!