.Net equivalent of JCEKS repository

I have an AES key that I generated using keytool:

keytool -genseckey -alias authenticationkey -keyalg AES -keysize 256 -keystore aes.jks -storepass foo -keypass bar -storetype JCEKS

Ignoring the problems with what I'm doing, I want to use the same key in a C # program. I can extract the key from Java and use it in C #.

I don’t think I can load the JCEKS repository in C #, and keytool will not let me create an AES key in the PKCS12 repository.

What is the correct AES key store format in C #?

+4
source share
1 answer

I know the question is out of date, but if someone crossed, I managed to read the JCEKS repository in .NET using the Chilkat library (also available for .NET Core).

https://www.example-code.com/csharp/jceks_read_secret_keys.asp

0

All Articles