1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/tder/example/goodaia.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,114 @@
1.4 +//
1.5 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +// This example script demonstrates how complex ASN.1 may be imported, edited
1.20 +// and exported.
1.21 +// This was generated from the output of importdumpasn1.pl and the signature
1.22 +// was changed to be generated dynamically. It is now possible to edit arbitrary
1.23 +// parts of the certificate and still have a valid signature
1.24 +SEQUENCE
1.25 +OUTPUT_BINARY_FILE=_tosign.bin,1
1.26 + SEQUENCE
1.27 + EXPLICIT=0
1.28 + INTEGER=2
1.29 + END
1.30 + INTEGER=8
1.31 + SEQUENCE
1.32 + OID=1.2.840.113549.1.1.4
1.33 + NULL
1.34 + END
1.35 + SEQUENCE
1.36 + SET
1.37 + SEQUENCE
1.38 + OID=2.5.4.10
1.39 + PRINTABLESTRING=Symbian Software Ltd
1.40 + END
1.41 + END
1.42 + SET
1.43 + SEQUENCE
1.44 + OID=2.5.4.3
1.45 + PRINTABLESTRING=Root5-RSA
1.46 + END
1.47 + END
1.48 + END
1.49 + SEQUENCE
1.50 + UTCTIME=040303163454Z
1.51 + UTCTIME=140301163454Z
1.52 + END
1.53 + SEQUENCE
1.54 + SET
1.55 + SEQUENCE
1.56 + OID=2.5.4.10
1.57 + PRINTABLESTRING=Symbian Software Ltd
1.58 + END
1.59 + END
1.60 + SET
1.61 + SEQUENCE
1.62 + OID=2.5.4.3
1.63 + PRINTABLESTRING=GoodAIA-R5
1.64 + END
1.65 + END
1.66 + END
1.67 + SEQUENCE
1.68 + SEQUENCE
1.69 + OID=1.2.840.113549.1.1.1
1.70 + NULL
1.71 + END
1.72 + BITSTRING_WRAPPER
1.73 + SEQUENCE
1.74 + BIGINTEGER {
1.75 + 00 E2 8F 16 EC 7C F4 AE D4 ED FD 68 C8 21 E1 33
1.76 + 47 CD D6 75 7B 84 9F 38 48 19 EF D1 D0 AA 34 A1
1.77 + 6A 19 F9 90 C7 99 EA 14 A3 76 67 7E B6 22 02 5F
1.78 + AA BB E5 31 51 3A 5B 0A B0 A5 E1 EC 68 19 62 4F
1.79 + 9E 18 8E 61 ED 24 6F 05 87 50 1C 06 9A 79 82 CD
1.80 + B3 0F D0 3F 63 EE 49 72 DA AB 3A EA BC 00 F0 87
1.81 + 07 A2 DE 49 50 CD 1D 83 BC 30 20 3E FF 50 B0 79
1.82 + 4C BD 7D 0A 03 E9 64 A1 D3 71 E4 64 5B 82 B9 ED
1.83 + 05
1.84 +
1.85 + }
1.86 + INTEGER=65537
1.87 + END
1.88 + END
1.89 + END
1.90 + EXPLICIT=3
1.91 + SEQUENCE
1.92 + SEQUENCE
1.93 + OID=1.3.6.1.5.5.7.1.1
1.94 + OCTETSTRING
1.95 + SEQUENCE
1.96 + SEQUENCE
1.97 + OID=1.3.6.1.5.5.7.48.1
1.98 + IMPLICIT=6
1.99 + PRINTABLESTRING=http://lon-sysbuild03.intra:19003
1.100 + END
1.101 + END
1.102 + END
1.103 + END
1.104 + END
1.105 + END
1.106 + END
1.107 + END
1.108 +END
1.109 + SEQUENCE
1.110 + OID=1.2.840.113549.1.1.4
1.111 + NULL
1.112 + END
1.113 + BITSTRING_WRAPPER
1.114 + SHELL=cmd,/C,"openssl dgst -binary -sign root5ca_key.pem -md5 _tosign.bin > _signature.der"
1.115 + INCLUDE_BINARY_FILE=_signature.der
1.116 + END
1.117 +END