-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication #5
Conversation
$gpg = gnupg_init(); | ||
|
||
// @todo: Delete the old key from GPG keyring. | ||
// gnupg_deletekey($gpg, $original->get('mailhandler_gpg_key')->fingerprint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does GPG maintain it's own keyring? How it is used? How does it differentiate between users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses the system's keyring. Each imported public key gets a Key ID. In case a signature is verified, the user's fingerprint (with its data) is returned. By looking at the key info for the returned fingerprint we can get more information like name, email etc.
Commits were cherry-picked and merged into the 8.x-1.x branch. |
No description provided.