56 questions
0
votes
1
answer
323
views
Azure key vault certificate throws bad parameter error
When I upload the certificate as this:
-----BEGIN CERTIFICATE-----
{my certificate}
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----
{my key}
-----END PRIVATE KEY-----
I am getting the error:
...
0
votes
1
answer
349
views
Different signatures when signing the same data using the same private key in Pkcs11Interop and RSACryptoServiceProvider
I want to use a Hardware Security Module (HSM) to sign a string. Specifically, I am using the ePass3003Auto to do so. I have stored the certificate in the HSM, which I have it's private key. Using the ...
0
votes
1
answer
1k
views
Calculate "x5t#s256" thumbprint of a certificate
According to the JWS specification, "x5t#s256" thumbprint is defined as follows.
The "x5t#S256" (X.509 certificate SHA-256 thumbprint) Header Parameter
is a base64url-encoded SHA-...
0
votes
1
answer
600
views
Signing a string using a private RSA key
My question consists of two parts: 1) How to sign a string using a private key; 2) How to sign a JWT token.
It is necessary to sign the string with a private key using the SHA256withRSA/PSS algorithm....
0
votes
1
answer
3k
views
W3C RSA-SHA256 algorithm cannot be used, unsupported algorithm
Is anyone also having trouble with the W3C RSA-SHA256 algorithm to sign XML ?
I'm using it to do a XML Digital Signature but I'm not able to use it since the page has been moved, see:
https://www.w3....
0
votes
0
answers
1k
views
How to generate hash of a file using certificate information and sha-256
Is it possible to generate hash of a file using certificate information?
I have certificate details like this
"details": {
"certificate": "...
0
votes
0
answers
363
views
PostgreSQL RSA-SHA256 password checking
I have a node js app which stores passwords into a PostgreSQL database (Sequelize ORM) according to the function setSaltAndPassword detailed below
const crypto = require("crypto");
User....
0
votes
1
answer
762
views
How do I create the padded message for use in the SHA256-2 algorithm?
I am trying to understand the SHA-2 algorithm. And it seems that its a bit vague on how people are encoding the message 'L' (see wikipedia's SHA256-2 pseudo code). Is the message encoded in ASCII, ...
0
votes
0
answers
1k
views
How to Sign a String using RSA Private Key Android Kotlin
We are facing issue on Signing String using Private RSA Key
val key:'-----BEGIN RSA PRIVATE KEY-----ASDSADSAADSDASA-----END RSA PRIVATE KEY-----';
val data:'DATA TO BE SIGNED';
val privateKeyPEM = key
...
1
vote
0
answers
37
views
Python Paramiko - Create RSAKey from Fingerprint [duplicate]
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+...
0
votes
1
answer
1k
views
Validating RS256 signature with PHP
I am having trouble verifying an RS256 signature in PHP from a JWT.
I have
$to_verify = substr(Cookie::get('CF_Authorization'), 0, strrpos(Cookie::get('CF_Authorization'), "."));
$signature ...
0
votes
1
answer
869
views
Problems to write a byte array of a signed hash with a private key in a text file and get it back as the same format
I'm writing a bytes array to a text file of a signed hash, that I first convert to a base64 string and convert to a bytes array again with the encoding UTF-8 before writing to the text file, my ...
0
votes
1
answer
303
views
Convert String in Hash SHA-256 format with NUL(e.g. "/000")
Using JMETER, I would like to convert below String in SHA - 256 Hash key notation
624111NUL2021-10-06T11:35:39-04:00NULs3cr3tNUL,
The correct supposed to be
...
0
votes
1
answer
1k
views
Generate JSON Web Token (RS256) to access DocuSign using Google Apps Script
I am trying to send envelopes from Docusign using only Apps Script.
function createJWT(){
const header = {
alg: 'RS256',
typ: 'JWT',
};
const now = Date.now();
const expires = new ...
1
vote
1
answer
81
views
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 ...