About Public-Key Cryptography Standards in general. Use the [pkcs#
Questions tagged [pkcs]
21 questions
1
vote
0 answers
Problem with cURL in PKCS11 with USB TOKEN
I am trying to run a cURL on ubuntu on a usb authentication token to an URL.
I can see the private key when I run the command ''pkcs11-tool -l --pin -O", while if I run the command on p11tool p11tool --login --set-pin= --list-all, it returns…

AlexVexa
- 11
- 1
0
votes
1 answer
Meaning of algorithm properties in a certificate
I am not able to find a reliable definition for the different algorithm properties in a certificate. In windows UI, I have this CA certificate and a CRL it generated (with certutil/ADCS):
My interpretation of this is that:
'Signature algorithm' ->…

stan
- 37
- 7
0
votes
1 answer
Decryption error while Decrypt the symmetric key
I'm trying to use RSA algorithm and PKCS1Padding for encryption the given password but when cipher.doFinal() is called the BadPaddingException is thrown.
Here is the code :
String rsaKeyAlgorithm = "RSA";
String rsaEncryptAlgorithm =…

Mohammadreza Khatami
- 1,444
- 2
- 13
- 27
0
votes
0 answers
How can i get public key in DER format from base64 encoded public key?
I am trying to get public key in DER format from base64 encoded public key using swift. Is there any way to do this?

ahad alam
- 69
- 7
0
votes
0 answers
Failed to create SecKey using SecKeyCreateWithData using swift
I am trying to create SecKey from Public Key Data.
let publicKeyFromDongle: String = (self.dongle?.getPublicKeyBits(enrollmentId: enrollmentId, password: password))!
print("Public Key is: \n",publicKeyFromDongle)
let keyDict:…

ahad alam
- 69
- 7
0
votes
0 answers
Automate parsing yubikey pin in pkcs11
I'm working on infrastructure that requires me to load a smartcard prior to getting access to the bastions. This is done using a Yubikey based pkcs11.so The code looks like :
`
Generate-ssh() {
ssh-add -e /usr/local/lib/opensc-pkcs11.so >>…
0
votes
1 answer
What is the safest way to recognize if a file is application/pkcs7-mime or analogous in Angular?
I need to know a safe method to detect application/pkcs7-mime or similar files. One way would be to detect the final extension of the file but I would like to know if there is something better than that.
In reading it is possible to detect the…

Danilo Giovannico
- 315
- 2
- 9
0
votes
1 answer
OpenSSL.crypto.Error when trying to load certificate from Azure Key Vault
I need to implement certificate-based authentication for web API hosted in app service on Azure. To do this I firstly generated .crt certificate file and private key .key file like this:
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes…

devaerial
- 2,069
- 3
- 19
- 33
0
votes
0 answers
convert pkcs1 signature to pkcs7 signature using nodejs
as you know, there is no pkcs7 sign in ios, so in backend with nodejs we must convert to pkcs7 for another service call which only accept pkcs7 and it's not in our company. in our sever we have that string which ios sign and certificate and we…

Faraz
- 69
- 1
- 8
0
votes
0 answers
Usage of RSA and RSA-PSS key pairs generated with OpenSSL genpkey, for RSASSA-PKCSv1.5 and RSASSA-PSS signatures
I have 2 needs:
Usecase 1) Generate a key pair and do RSASSA-PKCSv1.5 signatures.
Usecase 2) Generate a key pair and do RSASSA-PSS signatures.
I am wondering how to generate the keys with OpenSSL, especially by using the argument -algorithm of…

Azerty32
- 1
- 1
0
votes
0 answers
Unit-Test in Java: Encryption and Decryption given an iOS KeyPair in ASN.1-Format
Objective
Writing an Encryption and Decryption-Test in a Java17 SpringBoot Service using RSA-keys generated on an iOS mobile device.
Hence:
Target: RSA-4096 is used throughout
This is about an iOS mobile device (Swift) <-> SpringBoot Service…

d.braun1991
- 151
- 1
- 13
0
votes
0 answers
how to decode CSR (#pcks10) in java using non-bouncycastle libraries
I am looking for a way to read the CSR (#PKCS10 request) in java. Is there any API available OOTB with oracle jdk? I have a specific requirement NOT to use Bouncycastle or any other custom implementations
In other words, I am looking for an …

Kedarnath
- 260
- 1
- 3
- 13
0
votes
0 answers
SOAPUI: Encrypt the date/time of the "Created" element, using OASIS Standard
I'm a novice in SOAPUI.
I've already consulted some tutorials but I couldn't get the Header to look similar, and the error 1999 was returned.
Is it possible in SoapUI to configure WS-Security this way?
(OASIS Standard)

Peter Roman
- 77
- 1
- 1
- 7
0
votes
0 answers
In which version of openssl is the pkcs8 v2 option introduced?
In which version of openssl is the pkcs8 v2 option introduced?
Ex: openssl pkcs8 -in key.pem -topk8 -v2 des3 -out enckey.pem
From which version of openssl does v2 of pkcs8 work by default?(Which uses the pkcs#5 v2.0)

Vejju Deepesh
- 1
- 1
0
votes
2 answers
How to check pkcs format of a private key using golang code?
I am trying find the encryption format of a private key whether it is pkcs1 or pkcs8. Is there any golang code that helps me identify it

Vejju Deepesh
- 1
- 1