Closed mekpavit closed 9 months ago
Please, merge this PR. We could very well use this improvement! :) THX
Thank you for this solution @mekpavit! We have been looking for a solution like this for some time now. Can somebody merge this, please?
Great solution @mekpavit. Would be happy to have this merged as well.
Apologies for the direct ping @g-k (or other project maintainers) but is there any chance this could get merged? We're maintaining a fork just for this change. Thanks!
Hi @g-k (or others), we could really do with this being merged too - any chance of it going in? Thanks!
@g-k and myself no longer work at mozilla and therefore no longer maintain this repository. perhaps @hwine can be of assistance?
@AlCutter I'd suggest taking a look at the smallstep/pkcs7#3 fork (and that issue that mentions this one). They're more actively maintaining it over there. Also see #73 in this repo.
This pull request fix
getOIDForEncryptionAlgorithm
inpkcs7.go
check type of public key instead of private key if thepkey
implementscrypto.Signer
. This should make this library compatible withcrpyto.Signer
that does not expose private key (for example,crpyto.Signer
from ThalesIgnite/crypto11 that holds the signer from HSM).Change
getOIDForEncryptionAlgorithm
to check forcrypto.Signer
first. if it iscrypto.Signer
, it will determineOIDForEncryptionAlgorithm
from the public key.