Skip to content

Commit d3e12eb

Browse files
authored
Merge pull request #17 from Axway-API-Management-Plus/domaincert
Fix #15
2 parents 6e29d24 + dcc7091 commit d3e12eb

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ $./run.sh publish/publish.py -i /home/axway/apim-policy-password-cert-env/src/ma
279279
```
280280
The above script connects to local Node manager and deploys the new LoadableModule. If Node manager is running on some other machine, add url. Also, the username and password is hardcoded to default values, use the username and password parameters to provide new value.
281281

282+
Guide to Externalize EMT Admin node manager and gateway domain certificates - [domain certs](domain.md).
283+
284+
282285
## Contributing
283286

284287
![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen)

domain.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ keyUsage = digitalSignature, dataEncipherment, keyAgreement, keyEncipherment
4949
extendedKeyUsage = serverAuth, clientAuth, 1.3.6.1.4.1.17998.10.1.1.2.1, 1.3.6.1.4.1.17998.10.1.1.2.2
5050
subjectAltName = @alt_names
5151
52-
[node_manager_extensions]
53-
basicConstraints = CA:FALSE
54-
keyUsage = digitalSignature, dataEncipherment, keyAgreement
55-
extendedKeyUsage = serverAuth, clientAuth, 1.3.6.1.4.1.17998.10.1.1.2.1
56-
subjectAltName = @alt_names
57-
5852
[gateway_extensions]
5953
basicConstraints = CA:FALSE
6054
keyUsage = digitalSignature, dataEncipherment, keyAgreement
@@ -83,7 +77,7 @@ openssl pkcs12 -export -in signedbyCA.crt -inkey dss-key.pem -out domain.p12 -ch
8377

8478
- Prepare Admin Node Manager fed file
8579

86-
- Export Admin Node manager fed from classic installation, remove existing topology-cert and change remove / rename port name without blank space (e.g sslport)
80+
- Export Admin Node manager fed from classic installation, remove existing topology-cert and rename port name - "Management HTTPS Interface". The name should not contain any blank space (e.g sslport)
8781

8882
- Import loadable module
8983
Policystudio using File -> Import -> Import Custom filters -> select apim-policy-password-cert-env/src/main/resources/typeSet.xml.
@@ -159,7 +153,7 @@ command creates a file named signedbygatewayCA.crt
159153
openssl pkcs12 -export -in signedbygatewayCA.crt -inkey dssgateway-key.pem -out topology.p12 -chain -CAfile CA.pem -name 'topology-cert' -passout pass:
160154
```
161155

162-
- Prepare Admin Node Manager fed file
156+
- Prepare API Gateway fed file
163157

164158
- Import loadable module
165159
Policystudio using File -> Import -> Import Custom filters -> select apim-policy-password-cert-env/src/main/resources/typeSet.xml.

src/test/java/com/axway/ExternalInstanceDomainCertTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class ExternalInstanceDomainCertTest {
2121
public void testCerts(){
2222
try {
2323
PKCS12 pkcs12 = certHelper.parseP12(new File(ClassLoader.getSystemResource("topology.p12").getFile()), "".toCharArray());
24-
File certsXml = new File("src/");
24+
File certsXml = new File("src/test/resources/");
2525
certsXml = new File(certsXml, "certs.xml");
2626
externalInstanceDomainCert.certsFile(pkcs12, certsXml);
2727
} catch (KeyStoreException e) {
@@ -39,7 +39,7 @@ public void testCerts(){
3939

4040
@Test
4141
public void testUpdateMgmtFile(){
42-
File file = new File("src/mgmt.xml");
42+
File file = new File("src/test/resources/mgmt.xml");
4343
try {
4444
externalInstanceDomainCert.updateMgmtFile(file, "cn=dss");
4545
} catch (ParserConfigurationException e) {

0 commit comments

Comments
 (0)