Questions tagged [cryptographicexception]
41 questions
2
votes
1 answer
.Net CryptographicException "Object already exists" on Azure
We have a website deployed on two web apps on Azure : a production and a pre-production version.
The website at certain time creates a container to host RSA keys, using the below code :
// -----------------------------
// Part 1 : Initialize csp…

Riana
- 689
- 6
- 22
1
vote
2 answers
C# CryptographicException not being caught
I have a serialisable class called DataSet which has a static method Load(string filename, string password) which returns the deserialised DataSet.
Here it is:
public static DataSet Load(string filename, string password)
{
if…

Ozzah
- 10,631
- 16
- 77
- 116
1
vote
0 answers
How to make openjdk 11 to support elliptic curve cryptography algorithm?
Getting error "javax.net.ssl.SSLException: Could not generate ECDH keypair" when tried to invoke https URL in java application.It worked fine with Oracle JDK 1.8.0.152.It is not working when we migrated to Openjdk 11.
How to make openjdk 11 to…

Muthu Karthik
- 11
- 3
1
vote
1 answer
Specified initialization vector (IV) does not match the block size for this algorithm using TripleDesImplementation in asp.net core
We are using ASP.NET Core with TripleDesImplementation algorithm encryption.
The decryption code is as below:
public static string Encrypt(string p_szStrValue)
{
string vszEncryptedString = string.Empty;
if…

Ashvini2004
- 11
- 1
1
vote
1 answer
CryptographicException while loading X509Certificate2 from PFX file programatically:
In the tmpAEC4.pfx file, I have the content representing the certificate set at the bottom of this message. When I try to instantiate X509Certificate2 :
var data = File.ReadAllBytes(@"C:\Temp\tmpAEC4.pfx");
new X509Certificate2(data,…

Yann Brulhart
- 41
- 5
1
vote
1 answer
System.Security.Cryptography.CryptographicException: The system cannot find the file specified
I got this exception from the deployment machine, which didn't happened in my development machine. This is a .net framework website.
System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
at…

Feng
- 56
- 1
- 6
1
vote
1 answer
Errors Loading X509 Certificate
For the last week I have been finding the following two intermittent exception on our web servers:
System.Security.Cryptography.CryptographicException: Insufficient system resources exist to complete the requested…

aaroncatlin
- 3,203
- 1
- 16
- 27
0
votes
1 answer
Error codes for CryptographicExceptions?
I'm trying to map different CryptographicExceptions to custom exceptions and messages. For example, "Object already exists" ==> "Not enough permissions to access an existing RSA key container". However, when I examine CryptographicException class, I…

kateroh
- 4,382
- 6
- 43
- 62
0
votes
1 answer
CryptographicException: System cannot find the specified file in azure app service
I have a .net core app with openiddict configured and published on azure app service but while loading the application following exception occurs:
---> System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
…

Ali Khan
- 138
- 9
0
votes
1 answer
Issues with RSA Encryption and Decryption in Crypter Application
I'm currently working on a cryptographic application for educational purposes, and I'm encountering some issues with RSA encryption and decryption. The application acts as a crypter, allowing encryption and decryption of files. However, during the…

Saben
- 1
0
votes
1 answer
Babel Obfuscator V8.3.0.0 exception thrown after obfuscating a C# .exe file
I use Babel Obfuscator V8.3.0.0 to obfuscate my C# application.
The problem is that when I obfuscate it, it throws an exception on the line :
char[] cInvalidVolumeNameFATChars = { '*', '?', '.', ',', ';', ':', '/', '|', '+', '=', '<', '>', '[', ']'…

Le ZVince
- 39
- 7
0
votes
1 answer
Read a TLS/SSL private key certificate in your code in Azure App Service
Following this Microsoft article we are accessing a Private Key Certificate in code which was uploaded to our App Service. We can look up the certificate by its thumbprint, as the article indicates, and can read it but when we try to access its key…

M. Brandel
- 45
- 1
- 7
0
votes
0 answers
Power BI embedded, Issue with using Certificate for getting authentication token - Getting error 'invalid provider type'
I am using power BI embedded on the on premises intranet app and to get the authentication token, I am using Certificate.
The issue i am facing is, when doing locally it works fine. But when posting to our Dev server, it is working on one instance…
0
votes
1 answer
Unit Testing AppContext Switches
Change Log
Renamed question: AppContext Switch Failing In Unit Test (CryptographicException: Invalid Algorithm Specified)
Added section at bottom explaining the issue in further detail after doing more investigating
Added section at the bottom…

Axemasta
- 763
- 1
- 9
- 24
0
votes
0 answers
I have problem that says System.Security.Cryptography.CryptographicException: 'Bad Data. ' in vb.net when trying to import RSA parameters
Here's the code I am not sure if there's any hidden error but on runtime when trying to import the rsa parameters it pops up that error
Imports System.Security.Cryptography
Imports System.Security
Imports System.Text
Imports System.IO
Public…

Hern
- 3
- 3