Skip to content

Commit 3409c04

Browse files
formatting fix
1 parent de1f4ae commit 3409c04

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,10 @@ You do not need to download and build the source to use the SDK but if you want
6868
- Please refer to the accompanying documentation for the other optional properties that you may wish to specify.
6969

7070
- Build this project using Maven.
71-
a. mvn clean // Cleans the Project
72-
73-
b. mvn install
74-
// Builds the project and creates a jar file of client SDK
75-
// Includes running all unit tests and integration tests
76-
77-
c. mvn test
78-
// Runs unit tests
79-
80-
d. mvn failsafe:integration-test
81-
// Runs unit and integration tests. Note that integration tests require proper setup of test_cybs.properties
71+
- `mvn clean` - Cleans the Project
72+
- `mvn install` - Builds the project and creates a jar file of client SDK. Includes running all unit tests and integration tests
73+
- `mvn test` - Runs unit tests
74+
- `mvn failsafe:integration-test` - Runs unit and integration tests. Note that integration tests require proper setup of `test_cybs.properties`
8275

8376
## Testing the SDK
8477
We have two ways to test -- one is by downloading the zip and using scripts to test; other is using maven tool.
@@ -94,6 +87,7 @@ We have two ways to test -- one is by downloading the zip and using scripts to t
9487
```
9588
Windows: runSample.bat <service_name>
9689
Unix or Linux: runSample.sh <service_name>
90+
```
9791
- If JAVA_HOME is defined, the script uses <JAVA_HOME>/bin/java. Otherwise, it uses whatever java is in the path.
9892
- If the client is installed correctly, the requests and replies for a credit card authorization and a follow-on capture appear.
9993
- If you make any changes to the `RunSample.java` sample, you must rebuild the sample before using it. Use the `compileSample` batch file or shell script provided in the sample directory.
@@ -109,29 +103,35 @@ Unix or Linux: runSample.sh <service_name>
109103
- Edit `cybs.properties` and make the required changes.
110104
- Now use scripts to test.
111105

112-
##JKS creation
106+
## JKS creation
113107

114-
-To convert the p12 file to JKS follow the steps mentioned below.
108+
- To convert the p12 file to JKS follow the steps mentioned below.
115109
- These commands will take out all the certs from the p12 file. 
116-
1. openssl pkcs12 -in <Merchant_ID>.p12 -nocerts -out <Merchant_ID>.key
117-
2. openssl pkcs12 -in <Merchant_ID>.p12 -clcerts -nokeys -out <Merchant_ID>.crt
118-
3. openssl pkcs12 -in <Merchant_ID>.p12 -cacerts -nokeys -out CyberSourceCertAuth.crt
119-
4. openssl pkcs12 -in <Merchant_ID>.p12 -cacerts -nokeys -out CyberSource_SJC_US.crt
120-
121-
-Create a new p12. Here Identity.p12 is the new p12 file
122-
-openssl pkcs12 -export -certfile CyberSourceCertAuth.crt -in <Merchant_ID>.crt -inkey <Merchant_ID>.key -out identity.p12 -name "<Merchant_ID>"
123-
124-
-Create JKS from p12 using keytool
125-
-keytool -importkeystore -destkeystore <Your_keystore_name> -deststorepass <your_password> -srckeystore identity.p12 -srcstoretype PKCS12 -srcstorepass <Merchant_ID>
126-
127-
-Now import the CyberSource_SJC_US.crt to your keystore
128-
-keytool -importcert -trustcacerts -file CyberSource_SJC_US.crt -alias CyberSource_SJC_US -keystore <Your_keystore_name>.jks
129-
130-
-List the entries of your keystore
131-
-keytool -list -v -keystore <Your_keystore_name>
132-
133-
-It should have two entries. The first entry should contain a chain of two certificates - CyberSourceCertAuth and <Merchant_ID> with alias name <Merchant_ID>
134-
-Second entry should be for CyberSource_SJC_US certificate with alias name as CyberSource_SJC_US
110+
```
111+
openssl pkcs12 -in <Merchant_ID>.p12 -nocerts -out <Merchant_ID>.key
112+
openssl pkcs12 -in <Merchant_ID>.p12 -clcerts -nokeys -out <Merchant_ID>.crt
113+
openssl pkcs12 -in <Merchant_ID>.p12 -cacerts -nokeys -out CyberSourceCertAuth.crt
114+
openssl pkcs12 -in <Merchant_ID>.p12 -cacerts -nokeys -out CyberSource_SJC_US.crt
115+
```
116+
- Create a new p12. Here `Identity.p12` is the new p12 file
117+
```
118+
openssl pkcs12 -export -certfile CyberSourceCertAuth.crt -in <Merchant_ID>.crt -inkey <Merchant_ID>.key -out identity.p12 -name "<Merchant_ID>"
119+
```
120+
- Create JKS from p12 using keytool
121+
```
122+
keytool -importkeystore -destkeystore <Your_keystore_name> -deststorepass <your_password> -srckeystore identity.p12 -srcstoretype PKCS12 -srcstorepass <Merchant_ID>
123+
```
124+
- Now import the CyberSource_SJC_US.crt to your keystore
125+
```
126+
keytool -importcert -trustcacerts -file CyberSource_SJC_US.crt -alias CyberSource_SJC_US -keystore <Your_keystore_name>.jks
127+
```
128+
- List the entries of your keystore
129+
```
130+
keytool -list -v -keystore <Your_keystore_name>
131+
```
132+
- It should have two entries.
133+
- The first entry should contain a chain of two certificates - `CyberSourceCertAuth` and <Merchant_ID> with alias name <Merchant_ID>
134+
- Second entry should be for `CyberSource_SJC_US` certificate with alias name as `CyberSource_SJC_US`
135135

136136
## Message Level Encryption
137137
CyberSource supports Message Level Encryption (MLE) for Simple Order API. Message level encryption conforms to the SOAP Security 1.0 specification published by the OASIS standards group.

0 commit comments

Comments
 (0)