{
String name = stringArg(args, 0);
String p = stringArg(args, 1);
SecureContextImpl self = (SecureContextImpl)thisObj;
self.initialized = false;
ScriptRunner runtime = (ScriptRunner)cx.getThreadLocal(ScriptRunner.RUNNER);
char[] passphrase = p.toCharArray();
try {
FileInputStream keyIn = new FileInputStream(runtime.translatePath(name));
try {
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
keyStore.load(keyIn, passphrase);
KeyManagerFactory keyFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyFactory.init(keyStore, passphrase);