cryptoservices/certificateandkeymgmt/tder/example/goodaia.script
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 // This example script demonstrates how complex ASN.1 may be imported, edited
       
    17 // and exported.
       
    18 // This was generated from the output of importdumpasn1.pl and the signature
       
    19 // was changed to be generated dynamically. It is now possible to edit arbitrary
       
    20 // parts of the certificate and still have a valid signature
       
    21 SEQUENCE
       
    22 OUTPUT_BINARY_FILE=_tosign.bin,1
       
    23    SEQUENCE
       
    24       EXPLICIT=0
       
    25          INTEGER=2
       
    26       END
       
    27       INTEGER=8
       
    28       SEQUENCE
       
    29          OID=1.2.840.113549.1.1.4
       
    30          NULL
       
    31       END
       
    32       SEQUENCE
       
    33          SET
       
    34             SEQUENCE
       
    35                OID=2.5.4.10
       
    36                PRINTABLESTRING=Symbian Software Ltd
       
    37             END
       
    38          END
       
    39          SET
       
    40             SEQUENCE
       
    41                OID=2.5.4.3
       
    42                PRINTABLESTRING=Root5-RSA
       
    43             END
       
    44          END
       
    45       END
       
    46       SEQUENCE
       
    47          UTCTIME=040303163454Z
       
    48          UTCTIME=140301163454Z
       
    49       END
       
    50       SEQUENCE
       
    51          SET
       
    52             SEQUENCE
       
    53                OID=2.5.4.10
       
    54                PRINTABLESTRING=Symbian Software Ltd
       
    55             END
       
    56          END
       
    57          SET
       
    58             SEQUENCE
       
    59                OID=2.5.4.3
       
    60                PRINTABLESTRING=GoodAIA-R5
       
    61             END
       
    62          END
       
    63       END
       
    64       SEQUENCE
       
    65          SEQUENCE
       
    66             OID=1.2.840.113549.1.1.1
       
    67             NULL
       
    68          END
       
    69          BITSTRING_WRAPPER
       
    70             SEQUENCE
       
    71                BIGINTEGER {
       
    72                               00 E2 8F 16 EC 7C F4 AE D4 ED FD 68 C8 21 E1 33
       
    73                               47 CD D6 75 7B 84 9F 38 48 19 EF D1 D0 AA 34 A1
       
    74                               6A 19 F9 90 C7 99 EA 14 A3 76 67 7E B6 22 02 5F
       
    75                               AA BB E5 31 51 3A 5B 0A B0 A5 E1 EC 68 19 62 4F
       
    76                               9E 18 8E 61 ED 24 6F 05 87 50 1C 06 9A 79 82 CD
       
    77                               B3 0F D0 3F 63 EE 49 72 DA AB 3A EA BC 00 F0 87
       
    78                               07 A2 DE 49 50 CD 1D 83 BC 30 20 3E FF 50 B0 79
       
    79                               4C BD 7D 0A 03 E9 64 A1 D3 71 E4 64 5B 82 B9 ED
       
    80                               05
       
    81                   
       
    82                }
       
    83                INTEGER=65537
       
    84             END
       
    85          END
       
    86       END
       
    87       EXPLICIT=3
       
    88          SEQUENCE
       
    89             SEQUENCE
       
    90                OID=1.3.6.1.5.5.7.1.1
       
    91                OCTETSTRING
       
    92                   SEQUENCE
       
    93                      SEQUENCE
       
    94                         OID=1.3.6.1.5.5.7.48.1
       
    95                         IMPLICIT=6
       
    96                            PRINTABLESTRING=http://lon-sysbuild03.intra:19003
       
    97                         END
       
    98                      END
       
    99                   END
       
   100                END
       
   101             END
       
   102          END
       
   103       END
       
   104    END
       
   105 END
       
   106    SEQUENCE
       
   107       OID=1.2.840.113549.1.1.4
       
   108       NULL
       
   109    END
       
   110    BITSTRING_WRAPPER
       
   111 	  SHELL=cmd,/C,"openssl dgst -binary -sign root5ca_key.pem -md5 _tosign.bin > _signature.der"
       
   112 	  INCLUDE_BINARY_FILE=_signature.der
       
   113    END
       
   114 END