How can I merge two Java arrays into one combined array? How do I programatically extract a certificate from a site and add it to my keystore?
Oct 13

KeyStore keystore = KeyStore.getInstance("JKS");
Key key = keystore.getKey(alias, password);

// Get public key of certificate

Certificate cert = keystore.getCertificate(alias);

// Get public key

PublicKey publicKey = cert.getPublicKey();

// Create key pair

KeyPair keypair = new KeyPair(publicKey, (PrivateKey)key); 

del.icio.us:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? digg:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? spurl:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? wists:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? simpy:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? newsvine:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? blinklist:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? furl:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? reddit:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? fark:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? blogmarks:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? Y!:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? smarking:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? magnolia:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? segnalo:How can I create a KeyPair instance from a pair of keys stored in my Java keystore? gifttagging:How can I create a KeyPair instance from a pair of keys stored in my Java keystore?

written by objects \\ tags: , , , ,


Leave a Reply

You must be logged in to post a comment.