Assignment 3 Setup - MobiTeC

Post on 09-May-2022

3 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

Assignment 3 Setup FTEC 4004 Tutorial 6

Xianbo Wang

Assignment 3 - Setup your own payment service

1. Apply an Alipay (sandbox) merchant account

2. Complete the demo program with applied credentials

3. Create an AWS instance to host the payment service

4. Set up and test your payment service

5. Monitor network traffics and analyze protocol flow

Basic setting of Alipay sandboxRegister an Alipay Global Account with some email at:https://global.alipay.com/open/account/register.htm

Login to Alipay Sandbox via the link below:https://bit.ly/39QMCqE

Switch to Merchant page

Basic setting of Alipay sandboxObtain the account for PC/WAP

Record the partner id

Basic setting of Alipay sandboxUpload your own RSA public key and keep the associated private key.

You can use the tool at https://bit.ly/2TNS2NF (Win10) or https://bit.ly/3aWcUYC (macOS) to generate the key pair (with the options ‘RSA’ and ‘PKCS1’). Openssl is also a workable solution.

If you use the former tool, please format your private key and add the header with the online service: https://www.samltool.com/format_privatekey.php

Basic setting of Alipay sandboxGet your testing user account

Login to AWS first via the link below:https://console.aws.amazon.com/console/home

If you don’t have an AWS account or your personal account is out of free credits, you can register a new AWS education account at:

https://aws.amazon.com/education/awseducate/

Basic Settings of AWS

Access the EC2 service.

Basic Settings of AWS

Enter the instances category

Choose the Launch Instance option

Basic Settings of AWS

Select an Ubuntu image (64-bit)

Select Next until Step 6 (Configure Security Group)Open the access to HTTP serviceThen, continue to Step 7 and launch the instance

Basic Settings of AWS

After that, you are required to set the key pair to access the instance. Choose the create a new key pair and input its name. Then, download key pair and save it on your computer.

Basic Settings of AWS

Then, you can see the instance status like follows.

Wait until it finishes initialization (3 min). Refresh if the status doesn’t update.

Basic Settings of AWS

Access the instance from your own PC with SSHr Switch to the directory that stores the downloaded key pair

file (with extension .pem)r Use ssh to access the instance with the command:

ssh –i your_certificate.pem ubuntu@your_ip

Basic Settings of AWS

You may want to stop your instance to reduce costs.

Keep your key files well. Otherwise, no one can help you to access the instance again.

Basic Settings of AWS

Follow assignment 3 instruction to set up the demo payment service on your AWS instance.

You are ready to go!

Q&A

top related