Hi everyone
I want to load a RSA public key from a Java Key Store file format .
I can load it in java but I can not find any class in .net to load this file with .
I want to ask if it is posible to use such a file in .net .
and if it is possible then I'll appreciate it if you could show me how .
this is my sample code in java for loading RSA public key from a jks file :
KeyStore ks = KeyStore.getInstance("JKS");
String keyLocation = "File Location";
ks.load(new FileInputStream(keyLocation), "aliase".toCharArray());
Certificate cert = ks.getCertificate("password");
PublicKey pub = cert.getPublicKey();
Do we have any KeyStore class in .net ?
I'll appreciate any help.
Best Regards
shilan
I want to load a RSA public key from a Java Key Store file format .
I can load it in java but I can not find any class in .net to load this file with .
I want to ask if it is posible to use such a file in .net .
and if it is possible then I'll appreciate it if you could show me how .
this is my sample code in java for loading RSA public key from a jks file :
KeyStore ks = KeyStore.getInstance("JKS");
String keyLocation = "File Location";
ks.load(new FileInputStream(keyLocation), "aliase".toCharArray());
Certificate cert = ks.getCertificate("password");
PublicKey pub = cert.getPublicKey();
Do we have any KeyStore class in .net ?
I'll appreciate any help.
Best Regards
shilan