private-key

Javascript RSA decryption using private key

大城市里の小女人 提交于 2020-01-03 03:12:13
问题 Hello I have this script that I set in Javascript : <!DOCTYPE html> <html lang="en"> <head> <script src="jquery-1.7.2.min.js" type="text/javascript"></script> <script language="JavaScript" type="text/javascript" src="jsbn.js"></script> <script language="JavaScript" type="text/javascript" src="rsa.js"></script> <script language="JavaScript"> function encryptData(){ var pem ="-----BEGIN PUBLIC KEY-----\ MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+tii3IwzHa4i142kAB0dRVXoXA2Q8oF48UgMA\ AV54

Issue Connection to server using Remote-FTP atom package and Private Keys

安稳与你 提交于 2020-01-02 15:01:08
问题 I'm trying to connect to my server using the atom package "Remote-FTP" and using a private key. I have the SSH keys set up on my server and can connect successfully using putty. The private key is saved in my project folder and I have an existing .ftpconfig file (without a private key) that connects successfully when I replace the information inside the file. The Key has been converted to the necessary ssh format and I have no passphrase at the moment. I have also gave the full path of the

How to read an RSA key from file

a 夏天 提交于 2020-01-01 09:44:11
问题 I need to read in an RSA private key from a file to sign a JWT. I have found some examples on how to save a generated RSA key to disk but nothing showing how to build a key struct based on a pre-generated key from a file. The key is generated like this: openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt Example key: -----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQClHYNDPVSF‌​FmWF oKGTqd/n7Dt2+tGXh97KJjVLAqCBZZHlQJ534v2OzFjTgzuMNehD9Y6HnkYF‌​dkRb

Get Private Key from BouncyCastle X509 Certificate? C#

老子叫甜甜 提交于 2020-01-01 04:27:08
问题 Normally when I grab an X509Certificate2 out of my keystore I can call .PrivateKey to retrieve the cert's private key as an AsymmetricAlgorithm . However I have decided to use Bouncy Castle and its instance of X509Certificate only has a getPublicKey(); I cannot see a way to get the private key out of the cert. Any ideas? I get the an X509Certificate2 from my Windows-MY keystore then use: //mycert is an X509Certificate2 retrieved from Windows-MY Keystore X509CertificateParser certParser = new

PostgreSQL won't start: “server.key” has group or world access

前提是你 提交于 2019-12-31 08:08:09
问题 Whenerver I start PostgreSQL using command: $ sudo /etc/init.d/postgresql start Pg doesn't start up. The error reported is: * Starting PostgreSQL 8.4 database server * The PostgreSQL server failed to start. Please check the log output: 2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access 2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other". ... and

PostgreSQL won't start: “server.key” has group or world access

ε祈祈猫儿з 提交于 2019-12-31 08:07:48
问题 Whenerver I start PostgreSQL using command: $ sudo /etc/init.d/postgresql start Pg doesn't start up. The error reported is: * Starting PostgreSQL 8.4 database server * The PostgreSQL server failed to start. Please check the log output: 2010-01-21 22:10:00 PST FATAL: private key file "server.key" has group or world access 2010-01-21 22:10:00 PST DETAIL: File must be owned by the database user or root, must have no write permission for "group", and must have no permissions for "other". ... and

Use a .p12 File from classpath for GoogleCredential

梦想的初衷 提交于 2019-12-31 01:23:29
问题 I am making a java command line application packaged in a single JAR file that uses some of Google's API. I need to set up a GoogleCredential object from a private key "Credentials.p12". GoogleCredential credential = new GoogleCredential.Builder() .setTransport(httpTransport) .setJsonFactory(jsonFactory) .setServiceAccountId("xxxxx@developer.gserviceaccount.com") .setServiceAccountScopes(Arrays.asList(DirectoryScopes.ADMIN_DIRECTORY_GROUP, DirectoryScopes.ADMIN_DIRECTORY_USER, DirectoryScopes

PSCP file from Windows to Linux using private/public keys

 ̄綄美尐妖づ 提交于 2019-12-30 11:03:42
问题 I can transfer file using PSCP: C:\>pscp -pw <password> -r -p <path of the file> user@Server:<path file to stored> But not using the public/private key. Steps followed: Generate public and private keys using PuTTYgen. Copy the public key to authorized_keys of Remote Server Save the private key to key.ppk in Windows server Then C:\>pscp -i privatekey pathofthefile user@server:pathfiletostored It gives "Fatal: Network error: Connection refused" Can someone please help? 回答1: Use the following

SSL Connection, Windows Certificate Store and CAPI engine

妖精的绣舞 提交于 2019-12-30 10:47:26
问题 I am creating an SSL connection using OpenSSL API. As we know in a SSL handshake, series of Certificate Authentication occurs for Server or Client. Now for client certificate authentication, the client's certificate and associated private key are stored in Windows Certificate Store . This certificate with private key is imported into the store after combining them into a pfx format and then that pfx file is imported to the windows Cert store. Now while importing this pfx file using mmc snap

openssl_pkey_new() throwing errors — Proper openssl.cnf setup for php

纵饮孤独 提交于 2019-12-30 08:15:40
问题 **Okay, It's become clear that this issue is an issue related with the setup of openssl on the Linux server and how to properly setup a custom openssl.cnf file. I am not looking for anything complicated but I need a front-end to be able to create self-signed client certificates for authentication to my webservice. So I need to be able to use my CA to create intermediate CAs for client companies and then allow them a secure interface to issue client certificates for their employees. Logins are