public-key

How can I get the public key of a webpage?

一世执手 提交于 2019-12-22 04:41:05
问题 How can I get the public key of a website like VeriSign and all other websites which use https(secure protocol)? 回答1: It depends on the browser you're using, if you let me know I'll update my answer. Chrome 55 and above You can now find this information in Developer Tools. Options (3 dots) -> More Tools -> Developer tools, or press F12, then click the "Security" tab and you'll get a "Security Overview" with a "View certificate" button. As per another SO post from Chrome 60 you can actually

WinSCP .NET library: Connect to SFTP server without specifying SSH host key fingerprint

泪湿孤枕 提交于 2019-12-21 20:56:57
问题 In the current stable release of WinSCP, it seems that using SshHostKeyFingerprint is mandatory and there are no ways to connect to SFTP server without that in SessionOptions . I can see that the ability to bypass is added to the beta (5.2) but I was wondering whether or not it's possible to connect without this fingerprint. 回答1: First, make sure you understand that you give-up any security , when you try to bypass SSH host key check. You effectively lose a protection against man-in-the

Maven won't use public key to deploy

狂风中的少年 提交于 2019-12-21 08:13:59
问题 I'm using SSH to deploy my Java artifacts to a server. I have the keys set up so that I can interactively SSH to the server without requiring a password, but when I try to run the " mvn deploy " or " mvn release:perform " commands, it hangs (at what I assume is the password prompt). My ~/.m2/settings.xml file contains the username for the server (because it is different than my local username) and references the id of the server that requires the different user. 回答1: Are you sure your

Maven won't use public key to deploy

喜欢而已 提交于 2019-12-21 08:13:04
问题 I'm using SSH to deploy my Java artifacts to a server. I have the keys set up so that I can interactively SSH to the server without requiring a password, but when I try to run the " mvn deploy " or " mvn release:perform " commands, it hangs (at what I assume is the password prompt). My ~/.m2/settings.xml file contains the username for the server (because it is different than my local username) and references the id of the server that requires the different user. 回答1: Are you sure your

SSH: “Bad passphrase” after generation of public key

泄露秘密 提交于 2019-12-20 17:28:57
问题 When I execute these commands (setting a passphrase, after the first)... $ ssh-keygen -t dsa $ chmod 600 my_key $ chmod 600 my_key.pub ...and then, to test the passphrase... $ ssh-add my_key.pub ...I keep getting: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: Bad passphrase, try again for my_key.pub: ... What am I doing wrong? 回答1: You're trying to add public key to the agent, that one isn't pass-protected, the

RSA decryption with a public key

做~自己de王妃 提交于 2019-12-20 15:09:31
问题 I've got some decryption problems in my Android project. I'm getting a string signed with a private key and I have to verify(decrypt) it with a public key. I'd like to get exactly the same result as if I were using a PHP function - openssl_public_decrypt ( http://php.net/manual/pl/function.openssl-public-decrypt.php ) I have to do this in my Java project, so I can use Java libs (e.g BouncyCastle, or something else, any recommendations? ) Any ideas how to solve this? Ok, here's my code. I'm

GitHub Error: Key already in use

自作多情 提交于 2019-12-20 08:36:45
问题 I have created two GitHub accounts. One for my work user and one for my personal self. I needed to do catch up on some work and as such cloned my work repo onto my personal PC. In order to do simple "git push origin master" commits without entering my username and password the whole time I simply want to add my public key from my home pc to the work repo. However Github gives this error: Error: Key already use After a bit of Googling I came across this link which states "To resolve the issue,

Digital Signature Verification failed using SHA256withRSA in Python

99封情书 提交于 2019-12-19 09:27:14
问题 This question was migrated from Cryptography Stack Exchange because it can be answered on Stack Overflow. Migrated 12 months ago . I am trying to validate the digital signature with given certificate files for the offline aadhaar KYC verification application. This instruction is given in the documentation for the verification. Read the entire XML and separate the s=”xxxx” tag from it. Use a signature validation algorithm leveraging “SHA256withRSA” based hashing and encryption technique

Quite special PublicKey in .NET core assemblies

左心房为你撑大大i 提交于 2019-12-19 05:57:40
问题 I've noticed that core .NET assemblies have PublicKey = 00000000000000000400000000000000. Not only it's shorter then those sn.exe allows to generate (min 384 bits) but also it has a lot of zeros. How to generate signing key with such a fancy public key? 回答1: That's the ECMA Standard defined public key. It's to deal with three conflicting requirements: A mechanism that ensures that assemblies are signed by their creators and could not have been created by a fraudulent other party. That CLI be

JSch how to use with PuTTY private key

烈酒焚心 提交于 2019-12-19 04:19:08
问题 I'm trying to use JSch with a private key configuration. I've generated a public and private key using PuTTYgen but am unsure what to do with both of the files. Which key (public/private) needs transferring to the server? 回答1: First, you need to register your PuTTYgen-generated public key on the server. See Getting ready for public key authentication or (my) Set up SSH public key authentication. And finally see Can we use JSch for SSH key-based communication? for details on using the private