Removing need for bash script
Change-Id: I447ed1d0e791ee38f4434d78a450edc02c222816
Issue-ID: INT-949
Signed-off-by: AndyWalshe <andy.walshe@est.tech>
diff --git a/test/mocks/pnf-onboarding/pom.xml b/test/mocks/pnf-onboarding/pom.xml
index 569d1e2..7f513eb 100644
--- a/test/mocks/pnf-onboarding/pom.xml
+++ b/test/mocks/pnf-onboarding/pom.xml
@@ -128,11 +128,21 @@
</execution>
</executions>
<configuration>
- <executable>src/main/scripts/generate-signature.sh</executable>
+ <executable>openssl</executable>
<arguments>
- <argument>src/main/resources/securityContent/sample-pnf.cert</argument>
- <argument>src/main/resources/securityContent/sample-pnf-private-key.pem</argument>
+ <argument>cms</argument>
+ <argument>-sign</argument>
+ <argument>-binary</argument>
+ <argument>-nocerts</argument>
+ <argument>-outform</argument>
+ <argument>pem</argument>
+ <argument>-signer</argument>
+ <argument>${project.basedir}/src/main/resources/securityContent/sample-pnf.cert</argument>
+ <argument>-inkey</argument>
+ <argument>${project.basedir}/src/main/resources/securityContent/sample-pnf-private-key.pem</argument>
+ <argument>-in</argument>
<argument>${project.build.directory}/signed-csar/${csar.name}.csar</argument>
+ <argument>-out</argument>
<argument>${project.build.directory}/signed-csar/${csar.name}.cms</argument>
</arguments>
</configuration>