author | William Roberts <williamr@symbian.org> |
Wed, 24 Feb 2010 16:51:57 +0000 | |
branch | RCL_3 |
changeset 10 | 0d167ce5e2a1 |
permissions | -rw-r--r-- |
10
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
# Copyright (c) 2010 Symbian Foundation Ltd. |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
# All rights reserved. |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
# This component and the accompanying materials are made available |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0" |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
# which accompanies this distribution, and is available |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
# Initial Contributors: |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
# Symbian Foundation - Initial contribution |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
# Description: |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
# Config file for generating the dummy certificate |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
|
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
|
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
# Steps to generate using OpenSSL |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
# 1. Generate key |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
# openssl genrsa -out devicekey1024.pem 1024 |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
# openssl rsa -inform pem -in devicekey1024.pem -outform der -out devicekey1024.der |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
# 2. Generate self-signed X509 certificate |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
# openssl req -new -x509 -keyform der -key devicekey1024.der -outform der -out dummycert.der -config dummycert.cnf |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
26 |
# |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
27 |
|
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
28 |
|
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
29 |
distinguished_name = Symbian Foundation |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
30 |
prompt = no |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
31 |
|
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
32 |
[Symbian Foundation] |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
33 |
C = GB |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
34 |
ST = Test State or Province |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
35 |
L = Test Locality |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
36 |
O = Organization Name |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
37 |
OU = Organizational Unit Name |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
38 |
CN = Common Name |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
39 |
emailAddress = noreply@symbian.org |
0d167ce5e2a1
Fix bug 1993 by providing a separate component which installs a dummy certificate and key generated by the Symbian Foundation
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
40 |