Questions tagged [rsa-sha256]
56 questions
5
votes
1 answer
How to create JWT signed with RsaSsaPssSha256
I'm trying to sign JWToken using RsaSsaPssSha256, with a self signed X509certificate2 that i read from the keystore.
using .net 4.61;
Tried to use System.IdentityModel.Tokens.Jwt from Microsoft:
SecurityTokenDescriptor tokenDescriptor = new…

Zarof
- 107
- 2
- 11
5
votes
1 answer
ModuleNotFoundError: No module named 'Crypto'
I installed Crypto module and SHA256 but showing ModuleNotFoundError
:-
Traceback (most recent call last): File "Digitalsig.py", line 1, in
from Crypto.Hash import SHA256 ModuleNotFoundError: No module named 'Crypto'
Here is the…

Rahul Thakur
- 77
- 1
- 1
- 2
5
votes
1 answer
Signing ClickOnce applications using mage.exe and Sha256 timestamp server url
Iam facing An error while trying to sign clickonce(.application) with MAGE.exe and SHA256 RFC 3161 timestamp.
mage.exe -s /path/to/our/.application" -cf certfile -ti [RFC 3161 timestamp]
I receive the following error:
"Internal error, please try…
5
votes
3 answers
how to sign a token with RSA SHA-256, in python?
I am trying to encode a JWT with python, I need to encode it in base64, with i did. and then I have to sign it with a private key before sending to the server. actually I am blocked, when to sign it I don't know how, I am searching on the web since…

gxmad
- 1,650
- 4
- 23
- 29
3
votes
2 answers
Generate Signature using Private Key and "SHA256 with RSA" algorithm in Node.js
Our system will be calling an API with Authentication server. This server is built in java and requires a lot of key encryption. One requirement is to generate a Signature with client's(it's us) private key using "SHA256 with RSA" algorithm. I have…
user11800886
3
votes
1 answer
sha256 hash from public key
I am trying to read sha256 has from a public key certificates. The certificate is shown below.
I am running following command to read sha256 hash but it is not giving proper result:
openssl x509 -in test.crt -pubkey -noout | openssl rsa -pubin…

silentsudo
- 6,730
- 6
- 39
- 81
2
votes
0 answers
How to get private key from jks keystore for signing the message with privatekey using shal256rsa in java
I want to encrypt the message with signed private key.and verify the signature but getting error in verify signature
//importing the crt and key into p12 file and importing into jks file
openssl pkcs12 -export -in…

prathibha.
- 31
- 1
- 6
2
votes
3 answers
How to do signature using SHA256withRSA algorithm in C#
I tried search solution to my query, I couldn't able find match I am looking for, this is very basic, but to my better understanding I am posting below query.
I want to encode and do signature for my string using "SHA256withRSA" algorithm. I could…

whoami
- 83
- 1
- 2
- 7
2
votes
1 answer
OpenSSL HMACSHA256 produces different result comparing to .NET
I am using C# and C++ with OpenSSL to compute HMACSHA256 has with a key and both produce different results. What am I doing wrong?
C# code:
public static string CreateSignature(string signingString, string sharedKey)
{
var key =…

Myar
- 112
- 10
2
votes
1 answer
"The signing algorithm <...> is weaker than the minimum accepted <...>" error when using Kentor Saml2 library
I'm trying SampleOwinApplication of Kentor library for Saml 2 authentication. I'm trying to login by going to http://localhost:57294/AuthServices/SignIn?idp=http%3a%2f%2fstubidp.kentor.se%2fMetadata. When I try to log in I get a strange error:
The…

Aurimas Šimkus
- 159
- 10
2
votes
1 answer
SHA-256 Differing Results
I'll do my best to describe my predicament.
I'm writing a python script that will take an input file and perform a SHA-256 hash on it.
If I take the raw binary image and run it through the command prompt (on my mac: shasum -a 256 somefile.bin), I…

Andrew Corsini
- 1,548
- 3
- 11
- 11
2
votes
2 answers
How to sign JWT with a RSA SHA-256 hash
I'm trying to get an access token to use office365 api through client credentials. I'm using this guide: Office 365 Rest API - Daemon week authentication
I'm sending my request using postman (see below)
Postman Picture
However postman gives me this…

Adam Franicsco
- 35
- 1
- 6
1
vote
0 answers
Python Paramiko - Create RSAKey from Fingerprint
I am attempting to establish a sftp connection using paramiko and verify the ssh connection using a host key fingerprint. The host key is provided to me and is in the format:
SHA256:lZ4rtJE62SWt6P+AS5q0+JZrpG/5Mejdm7sL/cvy4A8=
import paramiko
from…

Mark
- 41
- 4
1
vote
1 answer
Create a JWT in VBA RSASHA256
I have automated the use of Docusign from an Access Database using https calls from VBA
Now I have to change from their legacy authentication to use OAuth 2.0
I need to create a JWT and then use this to exchange for a Docusign API Access Token
I can…

LarkhillJJ
- 21
- 2
1
vote
1 answer
How to generate the JRE Sha25 from an oracle jre server version?
I need to generate the sha for the next URL:
https://download.oracle.com/otn-pub/java/jdk/8u301-b09/d3c52aa6bfa54d3ca74e617f18309292/server-jre-8u301-linux-x64.tar.gz
Because I need the oracle_jre_sha param to run some jobs. I'm not pretty sure…

rasilvap
- 1,771
- 3
- 31
- 70