Apache POI zip download failed to verify using gpg? - apache-poi

Just tried to verify the Apache POI zip download using gpg and the KEYS file.
poi-bin-3.15-20160924.zip
I got a BAD signature error.
gpg --verify poi-src-3.15-20160924.zip.asc poi-bin-3.15-20160924.zip
gpg: Signature made 09/18/16 04:47:42 New Zealand Standard Time
gpg: using RSA key 527EB833FA3ADDC2
gpg: BAD signature from "David North " [unknown]
Any suggestions?
I tried the download from both US and Europe mirrors.
Thanks

You're comparing the "src" hash with the "bin" archive.
Should be
gpg --verify poi-**bin**-3.15-20160924.zip.asc poi-bin-3.15-20160924.zip

Related

SSHKEY error (trying to get and use SSHKEY for gitlab)

(I have already seen other related answers in Stack Overflow, not helping, I may be missing something out)
I am getting this error after adding my SSH key to GitLab:
The form contains the following errors:
Key is invalid
Fingerprint sha256 has already been taken
Fingerprint sha256 cannot be generated
Key type is forbidden. Must be RSA, ECDSA, ED25519, ECDSA_SK, or ED25519_SK
This is my key generated from command prompt :
AAAAB3NzaC1yc2EAAAADAQABAAABgQDJKcaE7AZRIpFcRkobZBVSvBSscOdgHP5I5zV0gMA2jOIxV/3lOgf8vZ7rXWld/4bBNkCREM7JXs1IFZRrfSXgC2UocDpDWwnduUx8bGsZsfH1tfLLLU42lQgqMs5Aw+3zV4vlX9NpXGqSXtUXEbxQ18B9cv43I4Wg/9af9ADi8x27+xg6/f1jjL6pTVGySMceOyM0ZBpESbjwk66n4tzWlaVmn7c6OIDwlfz0K/ky/ozIBqwpFTDD72yCMgihWZSJiR2nIlhLPVwEKld0xfnstiludFdtHvt0U8tvyZjL6pTVGySMceOyM0ZsletaOaaKN+Pvq5pGMafcZyN/uMM63QHOwSPloaV9JFQ2hbT/7D8tmxojBGSLW5PlG+A1QxxBZHGYgFpz/ooIJNrjrkc7DFcn60jaGKeuDxXNXuOXhyCz4xVWNxAB7XdCurDYI/1YuFmXFDpkUhKCZM3cFBpfRZ78ScyQ0q/kSJygnuBULgPmcmKEg3VLj6C2Cuu3hiCjs0jgX8ltCHZ61E8U=
COMMAND:
ssh-keygen -t rsa -C "taha.gh1985#gmail.com"
Make sure to copy the full public key part of what ssh-keygen has generated.
In your case, the public key should start with ssh-rsa AAA....
I mentioned before a similar error, where the key was incomplete.
Note: the GitLab error message "Fingerprint sha256 has already been taken" has been reported as "not helpful enough": issue 377357.
RSA file :
ssh-rsa AAAAB3Nz.....61E8U= pasar#DESKTOP-9SMOQR
I removed begin and end of text and used it as key to GITLAB which was the reason why SSHKEY was wrong.

node js ssh keygen giving , Cannot parse privateKey: Unsupported OpenSSH private key type: ssh-ed25519 even after pem option

My company uses ed25519 and nodejs version 10. I see the error,
"
I deleted the keys from the .ssh( this i was fine since I am starting to build new) and regenerated adding the -m pem option as I copied the .pub contents to my app for validation.
I still see this error.. Is there anything I am missing? or is it picking up the old keys from somewhere?
Any pointers would greatly help me..
thanks

Cannot sign commit with exported GPG key from other machine

I need help with gpg key in git.
First I export keys from windows with this:
gpg --output backupkeys.pgp --armor --export-secret-keys --export-options export-backup user#email
Then on linux I import this key
gpg --import backupkeys.pgp
and change from unknown to ultimate. So this is how I import this key to linux.
But now I need add gpg key to git, so I do this:
git config --global user.signingkey mySuperKey
but when I can create commit
git commit -S -m "Super Commit"
I have this output
error: gpg failed to sign the data
fatal: failed to write commit object
I don't know where is problem.
After trying exporting new GPG keys and later import. I found answare for this problem.
echo hello world | gpg -sa -u user#email
if I try this don't show this:
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
So all what I need to do is this:
export GPG_TTY=$(tty)

Decryption failed: No secret key using GPG

Last night I setup Pass Password Manager. I used gpg2, and followed this tutorial. I didn't implement git integration. Everything worked successfully. To view my password I had to enter my master key, exactly like how I want it. This morning I try to use pass. In my terminal I typed in
pass account/adobe/my#email.com
I get the following error:
gpg: decryption failed: No secret key
It didn't ask me to enter my master key. I tried restarting gpg-agent, I tried editing ~/.gnupg/gpg-agent.conf, but nothing is working.
This is how my ~/.gnupg/gpg-agent.conf looks like:
default-cache-ttl 28800
# 8 hours
pinentry-program /usr/bin/pinentry-curses
allow-loopback-pinentry
I should mention that I am using Linux Subsystem on Windows 10.
I put this in ~/.gnupg/gpg-agent.conf :
default-cache-ttl 3153600000
pinentry-program /usr/bin/pinentry-curses
allow-loopback-pinentry
After enter the following commands:
$ gpgconf --kill gpg-agent
$ gpg-connect-agent /bye

Install chrome native client (nacl)

I am trying to install Chrome native client.
I went to this https://developer.chrome.com/native-client/sdk/download page to download and install the sdk. I followed the instructions in this page however when I tried to execute the naclsdk list command or any naclsdk command I got an error:
third_party.fancy_urllib.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)):
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
Usage: sdk_update_main.py <command> [options]
What is the problem here? Is there a problem with a certificate?
just comment two lines of sdk_tools/download.py
# ca_certs = os.path.join(SCRIPT_DIR, 'cacerts.txt')
# request.set_ssl_info(ca_certs=ca_certs)
When I tried applying the accepted answer, download.py was overwritten with the old version before it was executed.
Instead, I updated the certificates by replacing the contents of cacerts.txt with the certificate chain storage.googleapis.com is using today:
-----BEGIN CERTIFICATE-----
MIIGcjCCBVqgAwIBAgIQBdcOj75NzEPW3Y45nh0r+zANBgkqhkiG9w0BAQsFADBU
MQswCQYDVQQGEwJVUzEeMBwGA1UEChMVR29vZ2xlIFRydXN0IFNlcnZpY2VzMSUw
IwYDVQQDExxHb29nbGUgSW50ZXJuZXQgQXV0aG9yaXR5IEczMB4XDTE5MDMwMTA5
MzY0NVoXDTE5MDUyNDA5MjUwMFowcjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNh
bGlmb3JuaWExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxEzARBgNVBAoMCkdvb2ds
ZSBMTEMxITAfBgNVBAMMGCouc3RvcmFnZS5nb29nbGVhcGlzLmNvbTCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAMhmw+Z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DAfBgNVHSMEGDAWgBSb4gdXZxwewGoG
3lm0mi3f3BmGLjANBgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4Gs
J0/WwbgcQ3izDJr86iw8bmEbTUsp9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO
291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu01yiPqFbQfXf5WRDLenVOavS
ot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG79G+dwfCMNYxd
AfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
-----END CERTIFICATE-----
The problem is with an outdated sdk_tools/cacerts.txt file; Google has changed the CA they use, but the code tries to verify against a specific CA trust anchor.
As an aside, this highlights the difficulties with key pinning.
The minimum change you can do is to update the CA cert it expects by downloading a newer version. This still verifies that you're connected to a Google-controlled server.
The solution by sevenyearslater of ripping this custom check out works too, but makes it possible to spoof the download site in some scenarios.

Resources