summaryrefslogtreecommitdiff
path: root/tools/aws_config_offline/CertificateConfigurator.html
blob: 25be752e95f5fb88e94936f99eb84ec4cf33e544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">

<head>
    <title>FreeRTOS.org Developer Demos Configuration Tool</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="js/aws_iot_demo_config_template.js"></script>
    <script src="js/generator.js"></script>
</head>

<body>
    <div class="row">
        <div class="col-lg-2"></div>
        <div class="col-lg-8">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h2>AWS Profile Configuration Tool</h2>
                    <h4>FreeRTOS.org Developer Demos</h4>
                </div>
                <div class="panel-body">
                    <div class="container-fluid">
                        <div class="row">
                            <div class="col-md-12">
                                <p class="text-primary" style="font-size:18px">
                                    Enter Thing name and endpoint. Provide client certificate and private key PEM files
                                    downloaded from the AWS IoT Console.
                                </p>
                                <div class="panel panel-default">
                                    <div class="panel-body" style="background: #F8F8F8;">
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="form-group">
                                                    <label for="thingName" style="font-size:16px">
                                                        Thing Name:
                                                    </label>
                                                    <input type="text" class="form-control" id="thingName"
                                                        placeholder="FreeRTOSThing" />
                                                </div>
                                                <div class="form-group">
                                                    <label for="AWSEndpoint" style="font-size:16px">
                                                        AWS IoT Thing Endpoint:
                                                    </label>
                                                    <input type="url" class="form-control" id="AWSEndpoint"
                                                        placeholder="abc123defghijk.iot.us-west-2.amazonaws.com" />
                                                </div>
                                                <div class="form-group">
                                                    <label for="pemInputFileCertificate" style="font-size:16px">
                                                        Certificate PEM file:
                                                    </label>
                                                    <input type="file" class="form-control-file"
                                                        id="pemInputFileCertificate" />
                                                </div>
                                                <br />
                                                <div class="form-group">
                                                    <label for="pemInputFilePrivateKey" style="font-size:16px">
                                                        Private Key PEM file:
                                                    </label>
                                                    <input type="file" class="form-control-file"
                                                        id="pemInputFilePrivateKey" />
                                                </div>
                                                <br />
                                                <button type="button" class="btn btn-primary" style="font-size:16px"
                                                    onclick='generateCertificateConfigurationHeader()'>
                                                    <span class="glyphicon glyphicon-download"></span>
                                                    Generate and save demo_config.h
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <p class="text-primary" style="font-size:14px">
                                    <span class="glyphicon glyphicon-warning-sign" style="font-size:16px"></span>
                                    Save the generated header file to the
                                    <i>FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth</i> folder
                                    of the
                                    demo project.
                                </p>
                            </div>
                        </div>
                    </div>
                    <div class="text-center">
                        Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-2"></div>
    </div>
</body>

</html>