Skip to content

Instantly share code, notes, and snippets.

@kojiokb
Created August 24, 2012 05:57
Show Gist options
  • Save kojiokb/3446191 to your computer and use it in GitHub Desktop.
Save kojiokb/3446191 to your computer and use it in GitHub Desktop.
SSLルート証明書
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView textView = (TextView) findViewById(R.id.textView);
String trustStorePath = System.getProperty("javax.net.ssl.trustStore");
textView.setText(trustStorePath != null ? trustStorePath : "null");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment