Skip to main content

Questions tagged [public-key]

Public-key (or asymmetric) cryptography is a form of cryptography that does not require common secrets between the communicating partners.

public-key
0 votes
0 answers
17 views

Signature decoding error: Encoded text cannot have a 6-bit remainder

My updater doesn't work. I generated keys as it was shown in the updater guide, but instead on release builds it just gets stuck on installUpdate() phase and when I try to reproduce the issue in debug ...
ankit verma's user avatar
0 votes
1 answer
121 views

Azure Functions (Node.js): How to read the Public Key (.cer), uploaded into the Certificates Blade on Azure, from codes?

I have Azure Functions running on Node.js. (Also, please note that underlying OS via App Service plan is Windows) Let me do a little detour first. I've been accessing Azure Key Vault from Node.js ...
夏期劇場's user avatar
  • 18.2k
1 vote
0 answers
45 views

Connect to SFTP server with a public key

I have a host, a username and a public key as a string. How can I connect to the server? PhpStorm asks me for the private key file, but I have a public key string. Should I put the public key into a ...
Marco Rossi's user avatar
0 votes
0 answers
45 views

RangeException error during payload encryption with PHP JWT Framework

I'm trying to encrypt the payload using JWT Framework v2.2 as follow $jws_payload = "sdvsd....."; $kid = "AH1111"; $keyEncryptionAlgorithmManager = new AlgorithmManager([ new ...
Salman's user avatar
  • 39
0 votes
0 answers
68 views

Can't clone using RSA / Ed25519 / ECDSA on GitHub "Permission denied (publickey)"

RSA algorithm: ssh-keygen -t rsa -b 4096 -C "[email protected]" Enter file in which to save the key (/home/eljoaca/.ssh/id_rsa): ENTER Enter passphrase (empty for no passphrase): ENTER ...
ElJoaca's user avatar
-1 votes
1 answer
77 views

How do I connect to GitHub with a different public key and verify connection? [resolve Permission denied (publickey) Error] [duplicate]

I am using WSL (windows subsystem for linux) and the already configured public-key in GitHub for my local machine is not recognized when running the following command: git clone [email protected]:<...
B.SEZ's user avatar
  • 830
1 vote
1 answer
143 views

How to perform Public Key RSA Data Encryption in C using OpenSSL 3

I am relatively new to C and I am trying to encrypt a string data in C. I have been provided with a PUBLIC KEY that is somewhat like const char *pub_key_str = "-----BEGIN PUBLIC KEY-----" ...
Lilvinco's user avatar
  • 157
3 votes
2 answers
93 views

How to create ECC public key in OpenSSL's "EVP_PKEY" format from the TPM-specific "TPMT_PUBLIC" data structure?

I'm working on a project where I need to work with a TPM (Trusted Platform Module) and I need to verify an ECC signature that was generated by the TPM. The verification needs to be done in software , ...
user24805910's user avatar
0 votes
1 answer
168 views

Invalid header encountered while PGP verifying signature

My requirement: Hash Algorithm during signing: SHA256 Sender signs the encrypted message using its private key Receiver verifies the signature using Sender’s public key I am having the below ...
MM Ary's user avatar
  • 1
0 votes
1 answer
129 views

cant encrypt RSAOAEP384 in JAVA with PublicKey [closed]

Good day! I have a working JavaScript script that obtains a token from the server. I need to implement something similar in Java. The essence is that we receive a string from the server in the form of ...
electrovoz's user avatar
2 votes
2 answers
96 views

Why I need to pass Secure Random when I am loading the key from PKCS8 format

I am using Ring lib in Rust to generate ECDSA_P256 and I am passing SystemRandom, and I am getting PKCS8 key pair format. Until this point, there is no issue. let rng = SystemRandom::new(); let ...
Koptan's user avatar
  • 125
0 votes
2 answers
280 views

How do we use an Azure Keyvault Private/Public Key for App Registration authentication

I am doing the following: Generating a key pair using the Azure Keyvault UI Downloading the public key Trying to upload that as a certificate in the App Registration UI I am getting an error that ...
simpleCoder's user avatar
0 votes
0 answers
55 views

Git always wants a password instead of using the ssh key at pulling from GitLab using git SSH

Once it was working for a short time, but now git always asks for the password instead of using the key when push or pull to the GitLab server. According the server admin in the log of the GitLab ...
UHM's user avatar
  • 382
1 vote
0 answers
94 views

Why I am facing error in verifying a JWT token using `jsonwebtoken` module?

I am working on a Next.js app using Firebase authentication. I have managed to implement an authentication system that also generates a session-cookie (in simple words a token we get after successful ...
enggPS's user avatar
  • 702
0 votes
0 answers
47 views

Can't drive any matched public keys in "mbedtls_ecdh_context" from certificate and private key file using mbedtls

The following is the code to drive public keys from certificates and private key files, which are generated based on ECC curve MBEDTLS_ECP_DP_SECP521R1. I like to put the correct public key into ...
heejean's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
79