private-key

Fighting with certificates: Access was not successfully obtained for the private key

假如想象 提交于 2019-12-06 00:10:37
I work in company with many servers and Pcs for developers. Servers are win2003, PC developers Windows XP. In a server Win2003 named preiis01, in preproduction environment, other people in company install a client certificate using any other user (unknown user for me) for logging in server preiis01. I use my user "domainCompany\myuser" for log in server preiis01 (using Terminal Server, Remote Desktop for Windows XP). in preiis01, I execute mmc -> Snap in -> Certificates for Local Machine. In node -> Personal -> Certificates, I have seen the client certificate: Issued To ENTIDAD COMPANY INSURE

How to connect to SFTP through Paramiko with SSH key - Pageant

丶灬走出姿态 提交于 2019-12-05 21:48:15
问题 I am trying to connect to an SFTP through Paramiko with a passphrase protected SSH key. I have loaded the key into Pageant (which I understand is supported by Paramiko) but I can't get it to decrypt my private key. I have found this example here that references allow_agent=True but this does not appear to be a parameter that can be used with the SFTPClient . Can anyone advise if it is possible to work with Paramiko and Pageant in this way? This is my code at the moment - which raises

Generate RSA private key from n, e, d, p, q values in bash with OpenSSL [duplicate]

流过昼夜 提交于 2019-12-05 12:43:23
This question already has answers here : How to Generate rsa keys using specific input numbers in openssl? (2 answers) Closed 3 years ago . I have calculated n, e, d, p, q values of an RSA key. Now, how can I generate a private key file (pem or der) with openssl command line tools? I was thinking about openssl asn1parse -genconf asn1.cnf -noout -out asn1.der but I cannot understand how to build the conf file. tintin The OpenSSL manpage for asn_generate_nconf comes with an example cnf for generating the private_key ASN.1 sequence that should work with your cmdline: asn1=SEQUENCE:private_key

Encrypted Private Key to RSA Private Key

限于喜欢 提交于 2019-12-05 12:35:11
I have an Encrypted Private Key(say,servenc.key) in below format: -----BEGIN ENCRYPTED PRIVATE KEY----- MIIC2TBTBgkqhkiG9w0BBQ0wRjAlBgkqhkiG9w0BBQwwGAQSIFFvMaBFyBvqqhY6 yTV2fMVVAgIUczAdBglghkgBZQMEASoEEGRetyFtHhnJ7TZTM2qolWkEggKAFg/h GERtM1loEd+u8VAtLwTzBiXE5pmRpp/hX/1HrbBnzFjAsNtWlEtzpSuxuCoXtMst uKRB8qveHlfTQPzopkRZtljfOkD1DhdJz8BXSZrFmVkMrUq6m4Y/rnqTqI5JmtmQ qAXTBbl7u8TwMnqIaoSInEHnc+aiFT3KJuIq6PZy2rGKWGW2WB/OML2gANvHBI9n gyOo4VZHNsR6VBbCRJErUFhF5Wk2/YJD9ejnvXH6pJFqZYvnCFjkSlR+4MdCHBSo Ld0IoFjQ6X1uLLglFf/rQGKEQruLjTKmz6oe8nZIzrOoLmArir0DGTakEt0K6mha

GitLab SSH keys stopped working

自作多情 提交于 2019-12-05 04:04:36
OK, I've stumbled on this topic many times, but this is the first time that none of the regular solutions worked. I have a CentOS 6.4 server running GitLab . It's been working great with 20+ users and 60+ projects, but about 5 hours ago, my main staging server was unable to connect to the GitLab machine for the first time using key authentication and it prompted for password. I regenerated the RSA key and added it to my deploy keys, but that failed as well. Next, I tried to create a new user on the staging server, create a key for it, and add it to GitLab but it still fails. Permissions: drwxr

Load Java KeyStore for one alias?

亡梦爱人 提交于 2019-12-05 01:13:06
问题 Does anyone know if it is possible to load a KeyStore so that it only prompts for the password for the given alias? Example: In my key store i have two private keys: Alice's Encryption Certificate and Bob's Encryption Certificate. When i load my key store: keyStore = KeyStore.getInstance("Windows-MY", "SunMSCAPI"); keyStore.load(null); I am prompted for both Alice's and Bob's key store password. Once they are entered i can use getKey("Alice's Encryption Certificate", null); to retrieve Alice

Java: write and read password based encrypted private key

冷暖自知 提交于 2019-12-04 19:44:22
I am trying to read a password based encrypted private key from a file, but I'm getting the following exception: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big. at sun.security.util.DerInputStream.getLength(DerInputStream.java:561) at sun.security.util.DerValue.init(DerValue.java:365) at sun.security.util.DerValue.<init>(DerValue.java:294) at javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:84) ... This is how I encrypt and write to file the private key: public static void savePrivateKeyToDisk(PrivateKey privateKey, String passord){ try { //

ssh2_auth_pubkey_file authentication always fails

邮差的信 提交于 2019-12-04 18:07:23
问题 I'm trying to connect to another machine using PHP's ssh2 functions. I know the ssh keys have been created with no passwords and are distributed correctly, I can ssh user@host in the terminal on my machine to the server. The PHP function tries to connect to a ip address using an ssh key file:- function minnerConnect($miner_serial) { $port = '7822'; $miner_ip = $this->getMinerIp($miner_serial); $methods = array( 'kex' => 'diffie-hellman-group1-sha1', 'hostkey' => 'ssh-dss', 'client_to_server'

Generate RSA key pair using WebCrypto API and protect it with passphrase

不问归期 提交于 2019-12-04 15:33:05
title says it all. I was wondering how do I generate RSA key pair using WebCrypto API and how do I secure it with a passphrase so I can store it in a database. You can generate an RSA key pair with WebCrypto and export it as jwk (Json Web Key), pkcs#8 (private) or spki (public). See SubtleCrypto.exportKey() and the example code bellow To export the key to an external system in a protected way you could use an standard like: PKCS#8: The PKCS#8 private key format defined at IETF Public Key-Cryptographic Standard Encryption #8. allow encryption with a passphrase, but WebCryptography exportKey

Calculating VS_KEY container name

放肆的年华 提交于 2019-12-04 14:35:18
问题 How does one calculate VS_KEY container name? They are generally something like this: VS_KEY_71E582524B5DDE29. I'm assuming it's based on computer name but what if we have a cloud service running that changes the computer name randomly every time the instance restarts? We need to have the container name when the instance goes up so we know what container to store our private keys into so build tools and all work as they should. We need to automatically set the container name. So basically we