Embedded Jetty mit Client-Zertifikaten

Ich möchte einen eingebetteten https-Server erstellen, für den die Clients ein Zertifikat vorlegen müssen. Ich verwende Folgendes:http: //www.smartjava.org/content/embedded-jetty-client-certificate

Nun meine Frage ist, wie ich Keystore- und Truststore-Dateien für meinen Code bereitstellen kann, vorausgesetzt, mein Steg ist eingebettet. Ich meine diese Zeilen im Code:

// the keystore (with one key) we'll use to make the connection with the
    // broker
    private final static String KEYSTORE_LOCATION = "src/main/resources/client_keystore.jks";
    private final static String KEYSTORE_PASS = "secret";

    // the truststore we use for our server. This keystore should contain all the keys
    // that are allowed to make a connection to the server
    private final static String TRUSTSTORE_LOCATION = "src/main/resources/truststore.jks";
    private final static String TRUSTSTORE_PASS = "secret";

Vielen Dan

Antworten auf die Frage(1)

Ihre Antwort auf die Frage