Setting "Friendly name" with keytool

Hi. I run Java 1.4.1 and Tomcat 4.1. Using keytool, I would like to generate a keystore which generates certificates that have a friendly name that I specify. For example, in Internet Explorer, after installing a certificate as a Trusted Root Authority, I would like to go to Tools->Contents tab->Certificates->Trusted Root Certification Authorities tab, and see under the "Friendly name" column the friendly name that I chose for a certificate. I don't see a -genkey option to specify a friendly name in the keytool help. If there's no way to directly change the certificate's friendly name with keytool, I can change the certificate's friendly name in IE. How may I then import the modified certificate into the keystore and have the webserver reference the keystore to return the modified certificate?
Thank you.
Raj

Friendly Name is an attribute of the certificate defined in PKCS#9:
5.5.1 Friendly name
The friendlyName attribute type specifies a user-friendly name of the
object it belongs to. It is referenced in [17].
friendlyName ATTRIBUTE ::= {
WITH SYNTAX BMPString (SIZE(1..pkcs-9-ub-friendlyName))
EQUALITY MATCHING RULE caseIgnoreMatch
SINGLE VALUE TRUE
ID pkcs-9-at-friendlyName
where
pkcs-9 OBJECT IDENTIFIER ::= {iso(1) member-body(2) us(840)
                                 rsadsi(113549) pkcs(1) 9}
pkcs-9-at-friendlyName OBJECT IDENTIFIER ::= {pkcs-9 20}
See RFC2985.
If you add/change an attribute to an existing certificate its thumbprint (SHA-1 hash) will be changed.
Apparently keytool can't change such attribute, but see its source at the SCSL J2SDK Source code.

Similar Messages

  • How to set path names with spaces ?

    I want to set a variable to a path name that contains spaces that will work with cd. If I set the variable with
    set p1="My MPW Folder"
    then using echo $p1 yeilds
    My MPW Folder
    however is I do cd $p1 I get
    cd: Too many arguments.
    If I manualy type cd "My MPW Folder" it works. I just don't know which escape character I can use to allow the spaces to be accepted as part of the path name.
    Thanks,
    Power PC G4   Mac OS X (10.3.9)   1.25 GB RAM

    You already know that you can use quotes around a string to keep whitespace as part of the string, so: cd "$p1"
    Dual 1.25 GHz G4 (among others)   Mac OS X (10.3.9)   Fink (obviously)

  • Need help in setting file name with special characters in attachment

    Hi
    We have a requirement where we need to set the file name that contains special characters (like Russian) and send mauil using Java mail.
    If we set the file name as such, the attachment in the email contains garbled filename
    Can you pl let me know how to resolve this?
    We should use the file name as attachment name and this will have say special characters. The receiver who gets the mail should get with the correct attachment name
    One important point.. the attachments are opened from MS outlook.
    Thanks and regards
    Ram
    Edited by: 884910 on 13 Sep, 2011 5:00 AM

    Read the FAQ carefully. You don't need to call encodeText unless you're using a really
    old version of JavaMail.
    And, it depends on whether the mail reader you're using is handling encoded parameters
    according to the (new) MIME standard, or according to the (old) non-standard hack.
    Sadly, without knowing what mail reader the recipient is using, it's impossible to use
    encoded filenames that will work everywhere.

  • How to set event name with a apple script

    I use a script to import my photos in iphoto. It's a action folder script.
    This script automatically create albums with the folder's names.
    With the latest version of iphoto and ranking per event, I can not initialize the name events with the names of albums.

    The device has to be set up with the same Wi-Fi network that the iOS device is connected to. The printer cannot be physically connected to the computer. Then select something to print in the iOS device and it will look for a printer and should select yours. See this support document for more help. http://www.apple.com/support/iphone/assistant/airprint/

  • Set file name with XSLT - receiver channel - elements from XML?

    Dear experts,
    I have an XSLT mapping for a message that is sent via a receiver channel to a customer.
    The customer wants a certain file name which is put toghether by elements from the XML message.
    I have looked at:
    Re: Java Map for writing the file
    The java code and the XSLT work perfectly!
    In the line
    fos = new FileOutputStream(new File("Fixed_" + new Date().getTime() + ".xml"));
    a fixed value, date and time are used for the file name.
    But I need some values from the XML message to create my name. But how do I do that? Can I somehow get values from the XML message through that java function or do I have to adapt the XSLT?
    Can someone please help me!
    Thank you,
    Peter

    Hi Udo, Hello experts,
    Now I do have a problem. I am using this XSL file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:map="java:java.util.Map"
      xmlns:dyn="java:com.sap.aii.mapping.api.DynamicConfiguration"
      xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
    <xsl:output indent="no" />
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
        <!-- change dynamic configuration -->
        <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/File', 'FileName')" />
        <xsl:variable name="dummy"
            select="dyn:put($dynamic-conf, $dynamic-key, 'TOOLDATA_.xml')" />
      <xsl:copy-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    But then the output file is only named "TOOLDATA_.xml". So I assume the XSL is working.
    And I am using this Java-file:
    package pi_mappings;
    import com.sap.aii.mapping.api.*;
    import java.io.*;
    import java.util.*;
    public class SetFileName extends AbstractTransformation
         static final int BUFFER = 1024*1000;
        private Map param;
        public SetFileName(){  }
         public void setParameter (Map map)
              param = map;
              if (param == null)
                   param = new HashMap();
         public static void main(String args[])
              try
                   InputStream in = new FileInputStream(args[0]);
                   OutputStream out = new FileOutputStream(args[1]);
                   SetFileName sfn = new SetFileName();
                   //sfn.setParameter(mapOfMap);
                   sfn.execute(in, out);
              catch (Exception e)
                        e.printStackTrace();
        public void execute(InputStream inputstream, OutputStream outputstream)
        throws StreamTransformationException {
              try
                   DynamicConfiguration conf = (DynamicConfiguration) param.get("DynamicConfiguration");
                   DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
                   int len = 0;
                   byte buf[] = new byte[BUFFER];
                   FileOutputStream fos = null;
                   if (conf != null)
                        fos = new FileOutputStream(new File(conf.get(KEY_FILENAME) + new Date().getTime()) ); //sample only
                   else
                        fos = new FileOutputStream(new File("Fixed_" + new Date().getTime() + ".xml"));
                        while ((len = inputstream.read(buf)) > 0)
                             outputstream.write(buf, 0, len);
                             fos.write(buf, 0, len);
                        fos.close();          
              catch(Exception e){ e.printStackTrace();}
         public void transform(TransformationInput arg0, TransformationOutput arg1)
         throws StreamTransformationException {
              getTrace().addInfo("JAVA Mapping Called");
         this.execute(arg0.getInputPayload().getInputStream(), arg1
              .getOutputPayload().getOutputStream());
    Could you please help me find the mistake. I tried to test it locally by changing the main-method but I could not get it to work.
    Thank you very much for any ideas!
    Best regards,
    Peter

  • Phantom retired disk also listed as available - with same friendly name

    I recently had to mark a good disk as "Retired" in an attempt to get it ejected from a Storage Pool so that I could repair some Storage Pool issues on my server.
    The strange thing is that now this disk appears to be listed twice with the same disk friendly name when I run "Get-PhysicalDisk" in PowerShell - once marked as "Retired," the second time as available for pooling. I can’t rename the retired
    instance, and I have no idea how I might remove it.
    PowerShell output showing the Object ID's of the disk (other system disks removed from the output):
    PS C:\Windows\system32> Get-PhysicalDisk | ft FriendlyName, ObjectId, BusType –auto
    FriendlyName ObjectId BusType
    PhysicalDisk9 {b1b3fc5e-ccd7-11e2-b1dc-806e6f6e6963} RAID
    PhysicalDisk9 {10e2b595-a097-11e3-943a-806e6f6e6963} RAID
    I have tried setting a new friendly name on the retired disk using Set-PhysicalDisk, but this is the result:
    PS C:\Windows\system32> Set-PhysicalDisk -UniqueId b1b3fc5e-ccd7-11e2-b1dc-806e6f6e6963 -NewFriendlyName OldPhysicalDisk
    9
    Set-PhysicalDisk : The requested object could not be found.
    At line:1 char:1
    + Set-PhysicalDisk -UniqueId b1b3fc5e-ccd7-11e2-b1dc-806e6f6e6963 -NewFriendlyName ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCmdlets) [Set-PhysicalDisk]
    , CimException
    + FullyQualifiedErrorId : MI RESULT 6,Set-PhysicalDisk
    Is there anything else I can do to rename the phantom retired disk or -  preferably - remove it altogether? Note that it does not show up in Disk Manager or Server Manager.

    Thank you for the reply. I tried directly running Get-PhysicalDisk, and the disk still appeared to be listed twice.
    I also tried running the commands in the article you referenced, but without success.
    Nothing appeared to happen when I ran the Repair-VirtualDisk command. And this is the result when I ran the Remove-PhysicalDisk command.
    PS C:\Windows\system32> Remove-PhysicalDisk -FriendlyName PhysicalDisk9
    Remove-PhysicalDisk : A parameter cannot be found that matches parameter name 'FriendlyName'.
    At line:1 char:21
    + Remove-PhysicalDisk -FriendlyName PhysicalDisk9
    + ~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Remove-PhysicalDisk], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Remove-PhysicalDisk
    The disk in question is perfectly good, and I need to add it back to the storage pool. I used the DISKPART clean command to clean the disk's configuration, but after I opened Disk Management and followed the prompt to initialize the disk, the
    disk appeared in Server Manager in its former Storage Pool - as retired!
    And when I ran Get-PhysicalDisk after trying all these steps, the drive still shows up twice with the same FriendlyName, once as retired, once as available to pool.
    How can I fix this? It really doesn't seem like it should be this hard.

  • HT204053 I have one apple ID for purchases and then my mobile me ID where I use for email.  So I have set my cloud with my mobile me name, while keeping my purchases the original name.  Will my purchases be recognized as purchases when backup is finished.

    I have one apple ID for purchases and then my mobile me ID where I use for email.  So I have set my cloud with my mobile me name, while keeping my purchases the original name.  Will my purchases be recognized as purchases when backup is finished.

    Welcome to the Apple community.
    So long as you are logged into the iTunes Store, using the correct ID and password (settings >store), then you will always have access to your apps, books, music, TV shows etc etc bought via the iTunes Store on that account.

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • I have been given a new ipad as a gift, we set it up with my ID and email etc.  It keeps defaulting to my wifes name.  Have checked my apple ID is all correct and entered what am I/we missing

    Trying to set up new ipad.  We had one in my wifes name that we both used.  We have set mine up with relevant apple id and emails but if i send mail it shows it is coming from my wife, completely confused.  Can any one help, have we set thing up wrongly????

    Hi Brodies Dad,
    It sounds like you have the settings in the email account on your iPad set up in error. If you go to Settings > Mail, Contacts, Calendars > Accounts > select your Mail account > then select the account email address to look at the details > Is your name set correctly here? You can edit the name in this location, as well as any other details.
    This article, about setting up an email account, takes you to the correct place to make changes as well.
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    Enjoy your new iPad!
    Best,
    Brett L

  • I have 2 Apple iPads with the same Apple account name.  How do I set up one with a different Apple account name?

    I have 2 iPads with the same Apple account name.  How do I set up one with a different Apple name?

    Why is the reason you want a different apple id on them? Need more details to make sure we don't accidently set up the self destruct feature and destory the planet.

  • HT204053 I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on

    I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on my iphone

    Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
    You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC.

  • A friend set me up with icloud and in the process he lost some of the book i was listening to. I can't find it in my ipod or on my computer. It is part one and two of a book; interest part three showed up hough.

    A friend set me up with icloud on my ipod touch and in the process lost part one and two of the book I had purchased from itunes. I searched for it and it is not in my ipod any longer, although part 3 is there.  I tried to download it again from itunes store but they said I already purchased it and I didn't want to be charged again. What can I do? I am not happy at all because all I did with my Ipod was listen to my book and now I can't.

    Hi.
    If you've bought it from iTunes, you should be able to re-download it for free.
    Download directly from iPod by going to the iTunes Store-App and find the "Purchased"-menu. From here you should get a complete list of all your bought items and the ability to re-download.
    Download from iTunes on PC/Mac by opening iTunes > Go to iTunes Store > Go to the menubar on the left and choose "Purchased". Now, from the appearing window select the proper categori on top of the screen.
    I hope this was helpful.

  • Set document name when use PrintToPrinter with Crystal Reports 2008

    Hy,
    from my application, in .net environment,  I print report on printer at runtime with PrintToPrinter command,
    but all documents that I print have the same spool name: "document".
    Is there a possibility to set this name ?
    Thanks
    Filippo

    solution below:
    How to set  the CR print job name that displayed in Printer job queue?

  • Can I import 2 sets of photos with the same file name numbers?

    I've inadvertantly not had my camera set to "continuous" for file names and now have 2 memory cards with 2 different sets of images with the same file names.
    Can I still import both into Lightroom 2 without problems?
    What are the consequences?
    Thanks
    Stuart

    Yes. Of course, two files with the same name cannot be in the same folder. And don't forget to uncheck Don't import suspected duplicates during import.
    Another thing is that's not a good idea for good asset management, because someday you'll make some mistake because of this ambiguity. Good DAM practices suggest renaming your files after or during import, so that each files has a unique name across your entire image archive.

  • Hello!, my name is jan and i am using lightroom 2 for many years. I have an original set-up disk with a 24 digit serial number. I had never problems wih installation of lightroom. suddenly lightroom refuses to start when I try to from a picture i have tak

    Hello!, my name is jan and i am using lightroom 2 for many years. I have an original set-up disk with a 24 digit serial number. I had never problems wih installation of lightroom. suddenly lightroom refuses to start when I try to from a picture i have taken with my nikon D500 and transferred to WINDOWS 8.1.  i have tried to re-install lightroom : the procedure asks for the serieal number , but refuses to accept the number that always worked. PLEASE help!!  jan

    If you are certain you have the right serial number, there really isn't much we can help you with here. You might try downloading and installing the last version of Lightroom 2. It will be the trial version, but when the trial screen appears there is an option to indicate that you have a serial number. Incidentally, Lightroom serial numbers start with the first four digits being 1160.
    Adobe - Lightroom : For Windows : Adobe Photoshop Lightroom 2.7 - English, French, German

Maybe you are looking for

  • Slice tool is arow in save for web and............

    Hi, besides the fact that slice numbers are not showing up here in vista 32 CS4 (show slice number is activated in the preferences and show slices in view as well and I did a reset !) I encountered a other strange thing in "SAVE FOR WEB & DEVICES" wh

  • InDesign CS4 (6.0.6.622) crashes on print, Mac OS X 10.6.8

    I've been following some similar threads but they mostly have to do with Mac OS X Lion. I have three users at my site with this particular issue: InDesign CS4 crashes when they need to send the job to print. The crash reports are almost identical for

  • I have taken backup of my phone ; not able to restore it back

    i have taken backup of my phone ; not able to restore it back

  • JD3 1.2.2 VM RMI Bug

    Hi I think there is another problem with the 1.2.2 VM. This is the simplest RMI Java program and it does not work on the JDeveloper3 1.2.2 VM this program work with no problems on the Jbuilder3 VM and Sun VM Also the error is reported when executing

  • CS 4 Trial Versions

    Hello, I'm wondering are the CS 4 Trial Version for Dreamweaver completely gone? I'm meant to be delivering a training course in it on Thursday and 2 of participants are unable to download it due to the arrival of CS5