SSL-Konfiguration auf Maven-Tomcat-Plugin

Ich versuche zu entwickeln, um eine Wicket-app. Es ist die login-Seite öffnen müssen mit SSL. So habe ich einige der Codierung.
Aber ich kann nicht finden, konfigurieren Sie die maven-tomcat-7-plugin für SSL.
Ich erstellte keystore-Datei richtig.Mit keytool -genkey -alias tomcat -keyalg RSA Befehl
Es ist in dem Benutzer-Verzeichnis unter windows.Es ist Passwort ist das Passwort.

Dies ist, wie ich den tomcat in pom.xml:

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.0-beta-1</version>
    <executions>
        <execution>
            <id>tomcat-run</id>
            <goals>
                <goal>exec-war-only</goal>
            </goals>
            <phase>package</phase>
            <configuration>
                <path>foo</path>
                <!-- optional only if you want to use a preconfigured server.xml file -->
                <serverXml>src/main/tomcatconf/server.xml</serverXml>
                <!-- optional values which can be configurable -->
                <attachArtifactClassifier>
                                    default value is exec-war but you can   customize
                                </attachArtifactClassifier>
                <attachArtifactClassifierType>
                                      default value is jar
                                </attachArtifactClassifierType>
                <httpsPort>8443</httpsPort>
                <keystoreFile>${user.home}/.keystore</keystoreFile>
                <keystorePass>password</keystorePass>
                <protocol>org.apache.coyote.http11.Http11AprProtocol</protocol>
            </configuration>
        </execution>
    </executions>
</plugin>

InformationsquelleAutor der Frage yyy | 2012-07-24

Schreibe einen Kommentar