Open CompanyXY opened 2 years ago
While I guess @joostd's response might resolve the issue, there is something else that I believe should be said.
This report does not contain several details that might prove invaluable to resolve this issue.
I can't see the system distribution name and release.
I can't see any information on Yubico's utilities: their versions along with their origin. Where did they came from? Yubico's official site? EPEL? Fedora's repositories?
I can, however, see a fundamental unfamiliarity with the pesign
utility.
I can read between the lines and guess this case was with either Fedora or RHEL because of $PS1
formatting and if that's true, then the bad effects might well be caused by doing the thing that was not supposed to be done. I mean running a shell as the Unix account pesign.
I see there's been an attempt to use the system-wide NSS database /etc/pki/pesign/
but in this case the Standard Operating Procedure on RHEL is to add one's own account to the Unix group pesign and re-login. The entries in /etc/passwd
hint on that.
$ grep pesign /etc/passwd
pesign:x:977:977:Group for the pesign signing daemon:/run/pesign:/sbin/nologin
I agree this might be neither intuitive nor documented enough and I'll try to do something about it in the future.
Hello.
We're unable to utilize Yubico's YubiHSM2 FIPS for signing binaries.
pesign
claims it could not find our certificate:While the certificate is clearly present in the HSM:
I'll also attach its objectinfo:
I was using a 'Master Key' with all capabilities there are for this attempt so capabilities should not be the problematic thing.
What could possibly be going on here?