Terminal can't find notarytool

Now I am getting this:
xcrun codesign -s --force —verbose "Developer ID Application: Hans Adamson (ABCDE12345)" "/Users/Hans/Library/Audio/Plug-Ins/VST3/Art Vista Intonator i.vst3" --timestamp

error: The specified item could not be found in the keychain.

I checked and my certificate Developer ID Application is in the keychain. OK, so I click on the certificate and in red letters a message that this “certficate is not trusted”. At the same time when I check the certificate on my MacBook, the message is green saying: “This certificate is valid” What’s wrong?