Questions tagged [private-key]
Private key that occurs in asymmetric cryptography algorithms such as RSA and Diffie-Hellman as the counterpart to a public key. The private key must never be divulged while the public key can be made available to everyone. If your question is not pertaining specifically to the private key (usage/encoding/etc.), you should use more appropriate tags such as [public-key-encryption], [digital-signature], [diffie-hellman] or even [cryptography].
private-key
1,652
questions
0
votes
0
answers
15
views
Issue with Airflow Variables Adding Extra Backslashes to Private Key
I'm encountering a peculiar issue with Airflow. I've stored a private key as a variable in Airflow, but it seems to be adding an extra backslash (\) to newline characters (\n).
Here's an example of ...
0
votes
0
answers
18
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 ...
0
votes
1
answer
96
views
CryptAcquireCertificatePrivateKey() fails with error CRYPT_E_NO_KEY_PROPERTY
This is the setup
AD CS (windows server 2019 Hyper-V VM)
Created a new template by duplicating smartcard logon template.
Changed provider to Microsoft Software Key Storage Provider.
Algorithm is RSA ...
-2
votes
1
answer
82
views
Encrypt my own message and its giving a different message [closed]
So I'm trying to encrypt my own message but its coming out in symbols instead of letters.
Here is my code below
while b != 0:
a, b = b, a % b
return a
s0, s1 = 1, 0
t0, t1 = 0,...
0
votes
1
answer
57
views
Ruby's Net::SSH is limited to 3 authentication tries while OpenSSH client is not
I'm having a really weird problem where when I connect to an SSH server (that has a pretty standard default configuration, including a default MaxAuthTries of 6) using Net::SSH, the connection fails ...
0
votes
0
answers
50
views
Converting a PKCS8 PEM Private key to a RSAParameter in C#
I have a key in the format
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
I want to convert it to an RSA key to create a JWT from it. I'm using .NET 3.5 Framework.
But when I Use this code
...
0
votes
0
answers
36
views
orapki - how to import a pfx file
I have searched around for the example commands on how to import a pfx file.
I just have a .CER file for the Server and i just have a .PFX file for the private key.
I guess its possible to do this ...
0
votes
0
answers
39
views
github actions cannot push workflow
In a new Github repo I have added a workflow file. I can edit that file in the online editor.
But when I clone the repo, change the workflow and then try to push, I am getting:
$ LANG=C git push ...
2
votes
1
answer
78
views
how to create CSR in PHP?
I am trying to create CSR using PHP and OpenSSL extension,
but when I do that it gives me an error which says:
Failed to generate private key: error:2006D080:BIO
routines:BIO_new_file:no such file
...
0
votes
0
answers
24
views
How do I find my Path to add into .env file on github when making an APP
I'm not at all sure how to add my Private keys path into the .env file in GitHub.
I managed to download a private-key.pem to my PC but have no idea how I get the path to add into it.
PRIVATE_KEY_PATH=&...
0
votes
0
answers
46
views
How to pass a .pem file with a private key to jsrsasign's KJUR.crypto.Signature.init() method?
In the jsrsasign library (https://kjur.github.io/jsrsasign), the KJUR.crypto.Signature.init(key, [pass]) method expects a 'PEM formatted PKCS#8 plain RSA/ECDSA private key concluding "BEGIN ...
1
vote
1
answer
164
views
How to sign a data using ECDSA private key with the P-256 (secp256k1) curve in Android Kotlin?
I wanted to sign a hex data using ECDSA private key with the P-256 (secp256k1) curve. But most of the methods in Android use PKCS#8 encoded private key for signature generation. How to convert an ...
0
votes
0
answers
121
views
Bitcoin Hex private key
Is it possible to generate a wallet on the Bitcoin main-net without having the number "80" for main net added at the beginning and the double SHA at the end?
I have tried using a random HEX ...
0
votes
0
answers
61
views
TypeError: Cannot read properties of undefined (reading 'randomPrivateKey') in ethereum-cryptography/secp256k1 module
When attempting to call the randomPrivateKey function from the 'secp256k1' module, I have an issue that is preventing me from generating a private key.
const secp = require("ethereum-cryptography/...
0
votes
0
answers
201
views
how to resolve this secretOrPrivateKey must be an asymmetric key when using ES256
i am creating a jwt token with private key but receiving this error secretOrPrivateKey must be an asymmetric key when using ES256
i created private key by using this command on ubuntu 22.04, nodejs ...