selective-php / xmldsig

Sign XML Documents with Digital Signatures
MIT License
73 stars 34 forks source link

Possibility to verify digitalsign with public key without "password". #10

Closed ArmenMelk closed 2 years ago

ArmenMelk commented 2 years ago

Is that possible to verify digital sign key without "password". With x509 standards they don't need to have "password" for verify digital signature with public key. How we can modify validator for support that?

ShahenK commented 2 years ago

Also actual to me! No one wanna to share own password for private key. In that case we have to use public certificate with .pem extension.

odan commented 2 years ago

There was a copy/paste typo in the readme.

This has been fixed now. See here

// or load a public key file (without password)
$signatureValidator->loadPublicKeyFile('cacert.pem');

// or load the public key from a string (without password)
$signatureValidator->loadPublicKey('public key content');