私は最初のP2Pソフトウェアを作成しようとしており、ユーザーを識別するためにデジタル署名を使用します。私はthis tutorial on Oracle.comに続いた。公開鍵を取得する方法だけは述べていますが、秘密鍵を取得する方法は示していません。 SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
keyGen
を初期化できません: //Get Public Key
BasicX509Credential publicCredential = new BasicX509Credential();
File publicKeyFile = new File("keys/azurecert.cer");
if (publicKeyFile.exists()) {
CertificateFac