cryptoservices/certificateandkeymgmt/tx509/Data/extensions/certextbuilder.pl
changeset 11 9d767430696e
parent 8 35751d3474b7
parent 6 50f2ff6984be
child 31 c0e7917aa107
equal deleted inserted replaced
10:afc583cfa176 11:9d767430696e
     1 #
     1 #
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of the License "Eclipse Public License v1.0"
     5 # under the terms of the License "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 # Nokia Corporation - initial contribution.
    10 # Nokia Corporation - initial contribution.
    11 #
    11 #
    12 # Contributors:
    12 # Contributors:
    13 #
    13 #
    14 # Description: 
    14 # Description: 
    15 #
       
    16 #!/bin/perl -w
       
    17 
       
    18 # Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
    19 # All rights reserved.
       
    20 # This component and the accompanying materials are made available
       
    21 # under the terms of the License "Symbian Foundation License v1.0"
       
    22 # which accompanies this distribution, and is available
       
    23 # at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
    24 #
       
    25 # Initial Contributors:
       
    26 # Nokia Corporation - initial contribution.
       
    27 #
       
    28 # Contributors:
       
    29 #
       
    30 # Description:
       
    31 # This script converts certificate constraint extensions specified in an INI 
    15 # This script converts certificate constraint extensions specified in an INI 
    32 # format into a hex representation of the DER encoding that OpenSSL can 
    16 # format into a hex representation of the DER encoding that OpenSSL can 
    33 # add to a certificate.
    17 # add to a certificate.
    34 # This script allows corrupt certificate extensions to be generated for unit 
    18 # This script allows corrupt certificate extensions to be generated for unit 
    35 # testing and therefore using this script to create production certificates is
    19 # testing and therefore using this script to create production certificates is
    36 # NOT supported.
    20 # NOT supported.
    37 # See SGL.GT0220.255_Developer_Certificates.doc for usage instructions.
       
    38 # 
       
    39 #
    21 #
       
    22 #!/bin/perl -w
    40 
    23 
    41 use strict;
    24 use strict;
    42 use Getopt::Long;
    25 use Getopt::Long;
    43 
    26 
    44 my $OID_DEVICE_ID_LIST="1.2.826.0.1.1796587.1.1.1.1";
    27 my $OID_DEVICE_ID_LIST="1.2.826.0.1.1796587.1.1.1.1";