Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .idea/apim-password-cert-env.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/aws.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ PLHu3INlHcXQs3AY0wNBLhL2jBwZ0uwBYK+entFpCgb+Z+RQ+uxs3joYuKEMj6M6
Classic Example
```bash
$export cert_domain=`cat cert.pem`
## Use file path - file should be created via config map / mount
export certandkey_secureport = /opt/Axway/apigateway/certs/cert.pem
```


Expand Down Expand Up @@ -181,7 +183,11 @@ s2+QnHEKNi5n6eyF81l1X3AGOMp2uUF4CfU=

```bash
export certandkey_secureport="MIIL5gIBAzCCC7AGCSqGSIb3DQEHAaCCC6EEggudMIILmTCCBi8GCSqGSIb3DQEHBqCCBiAwggYcAgEAMIIGFQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQI9bSw5/Kr0SsCAggAgIIF6DTG3vfPtoc4NPgJE9FU43PRyMpBcv/JIefNDTvC5CNQ+7b47Afqo6mJFIndSxTEbHcnWNG/ufC2/C+7oTn8aZyrgi868fgysv9knhOe+tPJ1O6RyF690m00CmoRhE4kCDKMPaAeRR2ZAMAqj9nPrxjWMXKdrS8+LeEhq2SYSozP8VR+llaTrDPtO8+mC9KRfJIgrKpbB0G/qdnJNtrhJJ8fhaE+/Ufkhydwe0tldu+kOGMODCWVpCY5q2MRrQlhvQhLOYJ7LA/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PPkE5EBjD/VqXOfLks0Nc8fV1zhofKe088UTZ/qCZKQwK40qhjnYLZ2C1rYjgGtiGHMaPznmwuIazZV9pKgVw+TGTWQmnmuWq7XDEzorbxh0ExjG4S45IQUaTG2kZ9GuHMj3Ocpmf/cJhTZl7wro2x+p/opJYqdKbMOaA+8orsU5r9BCv7NZFh278fSo3fpPut9+ZpmSaYDPpDjAuYlpzv1NFTyAz8Q2myFWFHSxh+KnSfhrEtf4euDRgQ/9gZ2IqXUsZ3FXUNtymfMUYwHwYJKoZIhvcNAQkUMRIeEABDAE4APQBhAHgAdwBhAHkwIwYJKoZIhvcNAQkVMRYEFFnwiPQwNks1gKUHDM3ye/ArMTPaMC0wITAJBgUrDgMCGgUABBQMVJgNbDx/sDqV37rk+lgsiaWPhgQIXKMl/uHVEFw"
export certandkeypassword=changeit

## Use file path - file should be created via config map / mount
export certandkey_secureport = /opt/Axway/apigateway/certs/cert.p12

export certandkeypassword_secureport=changeit
```
**secureport** is the name of the https interface.

Expand Down Expand Up @@ -217,7 +223,7 @@ $mvn clean install

- Copy the apim-env-module-x.x.jar from project target folder to gateways instance folder $INSTALLDIR/apigateway/groups/{groupname}/{instancename}/ext/lib

- Add Loadable module to running gateway using publish script.
- Add Loadable module to running gateway using publish script or Import apim-policy-password-cert-env/src/main/resources/typeSet.xml via Policystudio using File -> Import -> Import Custom filters.

- Parameters of publish command
```bash
Expand Down Expand Up @@ -262,4 +268,4 @@ Also please read this page on [how to contribute](https://github.com/Axway-API-M


## License
[Apache License 2.0](/LICENSE)
[Apache License 2.0](/LICENSE)
237 changes: 108 additions & 129 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,133 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.axway</groupId>
<artifactId>apim-env-module</artifactId>
<version>1.1.1</version>

<name>apim-env-module</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<api.version>7.7</api.version>
<apim.lib.path>/Users/rnatarajan/AxwayProducts/apim_7_7/lib</apim.lib.path>

</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>


<dependency>
<groupId>apigw-common</groupId>
<artifactId>apigw-common</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\apigw-common-7.7.0.1-4.jar</systemPath>
</dependency>

<dependency>
<groupId>vordel-trace</groupId>
<artifactId>vordel-trace</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\vordel-trace-7.7.0.1-4.jar</systemPath>
</dependency>

<dependency>
<groupId>server</groupId>
<artifactId>server</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\server.jar</systemPath>
</dependency>


<dependency>
<groupId>precipitate</groupId>
<artifactId>precipitate</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\precipitate.jar</systemPath>
</dependency>


<dependency>
<groupId>es-core</groupId>
<artifactId>es-core</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\es-core-7.7.0.1-4.jar</systemPath>
</dependency>

<dependency>
<groupId>vordel-common</groupId>
<artifactId>vordel-common</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\vordel-common-7.7.0.1-4.jar</systemPath>
</dependency>

<dependency>
<groupId>vordel-system</groupId>
<artifactId>vordel-system</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\vordel-system-7.7.0.1-4.jar</systemPath>
</dependency>


<dependency>
<groupId>vordel-config</groupId>
<artifactId>vordel-config</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}\plugins\vordel-config-7.7.0.1-4.jar</systemPath>
</dependency>


<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.11.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.2</version>
</dependency>




</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<excludes>
<exclude>instance.xml</exclude>
<exclude>ExternalConfigLoadableModule.xml</exclude>
<exclude>typeSet.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.axway</groupId>
<artifactId>apim-env-module</artifactId>
<version>1.1.1</version>

<name>apim-env-module</name>
<url>https://axway.com</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<api.version>7.7</api.version>
<apim.lib.path>/Users/rnatarajan/AxwayProducts/apim_7_7/lib</apim.lib.path>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[4.13.1,)</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>apigw-common</groupId>
<artifactId>apigw-common</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/apigw-common-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>vordel-trace</groupId>
<artifactId>vordel-trace</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/vordel-trace-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>server</groupId>
<artifactId>server</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/server.jar</systemPath>
</dependency>
<dependency>
<groupId>precipitate</groupId>
<artifactId>precipitate</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/precipitate.jar</systemPath>
</dependency>
<dependency>
<groupId>es-core</groupId>
<artifactId>es-core</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/es-core-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>vordel-common</groupId>
<artifactId>vordel-common</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/vordel-common-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>vordel-system</groupId>
<artifactId>vordel-system</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/vordel-system-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>vordel-config</groupId>
<artifactId>vordel-config</artifactId>
<scope>system</scope>
<version>${api.version}</version>
<systemPath>${apim.lib.path}/plugins/vordel-config-7.7.0.1-4.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.11.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.13.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<excludes>
<exclude>instance.xml</exclude>
<exclude>ExternalConfigLoadableModule.xml</exclude>
<exclude>typeSet.xml</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading