assignment 3 setup - mobitec

15
Assignment 3 Setup FTEC 4004 Tutorial 6 Xianbo Wang

Upload: others

Post on 09-May-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Assignment 3 Setup - MobiTeC

Assignment 3 Setup FTEC 4004 Tutorial 6

Xianbo Wang

Page 2: Assignment 3 Setup - MobiTeC

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

Page 3: Assignment 3 Setup - MobiTeC

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

Page 4: Assignment 3 Setup - MobiTeC

Basic setting of Alipay sandboxObtain the account for PC/WAP

Record the partner id

Page 5: Assignment 3 Setup - MobiTeC

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

Page 6: Assignment 3 Setup - MobiTeC

Basic setting of Alipay sandboxGet your testing user account

Page 7: Assignment 3 Setup - MobiTeC

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

Page 8: Assignment 3 Setup - MobiTeC

Access the EC2 service.

Basic Settings of AWS

Page 9: Assignment 3 Setup - MobiTeC

Enter the instances category

Choose the Launch Instance option

Basic Settings of AWS

Page 10: Assignment 3 Setup - MobiTeC

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

Page 11: Assignment 3 Setup - MobiTeC

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

Page 12: Assignment 3 Setup - MobiTeC

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

Page 13: Assignment 3 Setup - MobiTeC

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

Page 14: Assignment 3 Setup - MobiTeC

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

Page 15: Assignment 3 Setup - MobiTeC

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

You are ready to go!

Q&A