Want to create a certificate inline - i.e. not command line

Hi
How do you create a certificate inline (without using keytool)? Any links, examples?
Thanks

If (and only if) you can send the JDK file "tools.jar" with your app, you can create the certificate using exactly the same arguments as the keytool command. Just instantiate the Keytool class that`s present in tools.jar. You need to use reflection to instantiate an object of the class because the constructor is private.
If you can send the Bouncycastle provider with your app, you can try using Bouncycastle http://www.bouncycastle.org ). Sign the Bouncycastle mailing list as well.

Similar Messages

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to create a new user and group on command line?

    Hi,
    I am trying to install INN, the news server on OS X.4.8 (non-server), but it requires me to create a user and group, both called 'news'.
    I know this has something to do with using Netinfo to create them, but I am logged in remotely via ssh and I can't use Netinfo Manager.
    How do I create new users and groups via the command line.
    Thanks for any help.
    PowerMac G5 2x2.7GHz   Mac OS X (10.4.8)  

    I've put some shell scripts that do this here,
    and descriptions
    add_user
    addgroup

  • [SOLVED] How to Create an Image from UTF8 Text via Command-line

    As the title points out, I'm trying to create an image from unicode text via command line. I tried...
    convert -pointsize 48 -size 400 caption:测试用 text.png
    But that results in question marks for the Chinese characters. So searching around online I discovered that I needed to specify a font which could display the characters. The characters show up just fine in Firefox, KDE, Kate, Terminal, etc so I know I have a font which can render them. I thought it might be DejaVu but this also resulted in question marks...
    convert -font /usr/share/fonts/TTF/DejaVuSerif.ttf -pointsize 48 -size 400 caption:测试用 text.png
    Any ideas?
    Last edited by tony5429 (2011-01-31 23:17:41)

    DejaVu doesn't contain those Chinese glyphs at all, so please don't blame ImageMagick for not rendering them.
    So, Firefox, Kate, Terminal and the others you stated to use DejaVu, if encounter these characters, fall back to some other fonts to render them. These fonts are, however, not vector, but bitmap fonts. (This can be seen if you increase text size (Ctrl++ in Firefox): the Chinese characters don't change, they remain of their inherent size.)
    Actually, e.g. /usr/share/fonts/misc/18x18ko.pcf.gz definitely contains the three example characters, so the mentioned apps may use this font as fall back.
    Apparently ImageMagick doesn't handle bitmap fonts (I'm not sure), so you won't be able to hit your original target. Anyway, since you tried to parse "-pointsize 48", you wouldn't be satisfied with the font size.
    Your only choice seems to be using the above mentioned CJK-approved TTFs.
    EDIT: typo
    Last edited by barto (2011-01-28 21:52:33)

  • I want to launch multiple scripts written in Java from command line

    Hi,
    I have created a Master script file (script.java) which call functions available in other class files. (created through Java code).
    Now, let's say I have 10 functions(scripts) on master script file but I want random selection for executing these functions. Do we have any interface for selection from available scripts?
    Edited by: 917140 on Apr 10, 2012 8:11 AM

    "Everything I know about the command is in the man page. I can't give you a literal command, because I don't know what to put in for the arguments. To be honest, if the man page is not understandable enough for you to build the command, I don't think you should use it at all. Use Profile Manager in OS X Server, which is the right way to do what you're trying to do."
    I do not know why this post did not show up here on the thread, I did get the email. Not sure how to respond. We have 800 stations. Can not go and touch each one, so looking for a command line to remove the ssid "campus" - If I read your message correct, you do not know the command line either for this. Thank you.

  • Creating .swf from .fla file using ADT command line

    Dear Adobe Community and Moderators:
    Is it possible to use the ADT command line to directly compile an .fla file into an .swf file? Context: I have an app created in Flash Pro CS55 (6 months worth of work), but now found Adobe has dropped Flash Pro in favor of Flash Builder or Flex. I have some native extensions I want to use for iOS, but they require Air 3.1 to compile (swf-version=14) i.e. using the MessageUI framework in a static .a library for an Air app. Flash Pro CS55's top end limit seems to be swf-version=13 (Flash 11). Because of heavy investment in time and energy into our Air app in Flash Pro, it's not feasible to convert to Flex by end of week. I tried creating an .swc file, and taking the library.swf from that, but alas, a catch-22, Flash Pro CS55 only compiles to swf-version=13.
    Is there any way to either (a) directly compile my root .swf file (from the .fla file) using a command line (so I can use ADT from Air 3.1 SDK) or (b) some way I can marry a native extension I've found I can use on GitHub which is swf-version=14? Again, my issue is that I have to use Air 3.1 since only it supports iOS5.
    Any thoughts, suggestions, comments are highly appreciated (including if it's not possible to do what I'm trying to do).
    Thank you Adobe community in advance,
    Alex

    I have the exact same question, please respond if you hold the answer to this! mxmlc won't work for me since I have created too many assets within the fla already! Thanks!

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • Class files created with JBuilder don't run from command line ?

    I have created an Application with JBuilder which is
    running perfectly from within JBuilder.
    However when I tried to run the app from the command line using c:\java ...... I got an error
    Exception in thread "main" java.lang.NoClassDefFoundError: ItasApplication/class
    I also tried to compile my .java files with javac which
    worked perfectly but I got the same message when trying
    to run the app!
    Can you help me ?

    I did this and I got this message :
    Exception in thread "main" java.lang.NoClassDefFoundError: ItasApplication (wron
    g name: itasgui/ItasApplication)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
    1)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

  • Create Quicktime reference from still sequence in command line

    Hello,
    I need to create a Quicktime Reference file from a still images sequences. But with command line.
    I've tried with Qt-Tools and Qt-Coffee but i don't find an answer...
    Thank yhou for your help!

    enka wrote:
    Please read the question...
    I can read
    I can speak english
    I can reason an argument
    but i don't find an answer...
    you got an answer

  • Want to create new certificate for the SYSTEM PSE

    when i got o tcode 'STRUSTSSO2" In my system i am seeing a wrong certificate for the system PSE.
    i want to delete and and create a new certificate.
    Can some one tell me detail steps how i can remove the existing  certificate and create a new one.
    I am going to use the new certificate for SSO from portal to this server.
    Thanks
    Andy

    Hi Andy,
    To remove the System PSE, follow the procedure described in [SAP Help|http://help.sap.com/saphelp_nw70/helpdata/EN/b6/23273aafa35d46e10000000a11402f/frameset.htm].
    To create a new one, see the procedure [here|http://help.sap.com/saphelp_nw70/helpdata/EN/07/03473cbff75b01e10000000a114084/frameset.htm].
    Regards,
    Henk.

  • I want to create vectors at 45 degree angles to a line

    I have the below classes for creating Vertices, Edges, and Midpoints of Edges on a canvas. I want to now create vectors at 45 degree angles to the edge at the midpoint. I have very little idea to do this at the moment. I would be very grateful if anyone could help.
    public class Edge implements Serializable{
    int edgeName;
    Vertex first;
    Vertex second;
    Midpoint m;
    double edgeLength;
      public Edge(Vertex end, Vertex otherEnd, Midpoint crossing) {
           this.first = end;
           this.second = otherEnd;
           this.m = crossing;
           this.edgeLength= getEdgeLength();
    public class Vertex implements Serializable{
         //int name;
         float xpos;
         float ypos;
         Vector vertexEdges;
      public Vertex(//int ID,
                float x, float y) {
           //this.name = ID;
           this.xpos = x;
           this.ypos = y;
           vertexEdges = new Vector();
    public class Midpoint{
    int first;
    int second;
    //controlPoint controlPoint;
      public Midpoint(int x, int y) {
           this.first = x;
           this.second = y;
    }

    OK this is a shot in the dark but it makes sense.
    Edge edge = new Edge()
    public Vertex addDegreeAngleAtMidpoint(Edge edge, float degree, int lineLength){
        //calculate the slope of the line ( (y2-y1) / (x2-x1 )
       float slope = ((edge.secode.ypos - edge.first.ypos) / (edge.secode.xpos - edge.first.xpos)
       //now you know the slope of the line then calculate x degrees from the line
      //so the equation would be (cos degree = x/length) for the x value
      float x =  Math.cos(angle) * length;
      //so the equation would be (sin degree = y/length) for the y value
      float  y = math.sin(angle) * length;
      //calculate the slope of the vector ( (y2-y1) / (x2-x1 ) )
      float vectSlope = (y - edge.midpoint.first) / (x = edge.midpoint.secode);
      // get y intercept (y = mx+b => b = y -mx)
      float yIntercept = y - vectSlope*x;
      //get the point y = mx + yIntercept
      // any point plugged into this equation shold be degrees offset from the midpoint of the line
      // I did the hard part now you figure out the rest please. 
    }

  • I want to create forms that are printable and not for web usage?

    I need to create forms that are for use in an office setting not only for web usage.  How do i do that?

    Hi,
    You may design a form in FormsCentral and then save the form as submission-enabled PDF form. Please check out this tutorial: Tutorial: Creating and distributing fillable PDF forms.
    Thanks,
    Wenlan

  • I am new and want to create apple id but i am not be able to get varification mail

    not got any varification mail from site fow new account

    The following may help: If you didn't receive your verification or reset email - Apple Support

  • How to create and use library JAR files with command-line tools?

    Development Tools -> General Questions:
    I am trying to figure out how to put utility classes into JAR files and then compile and run applications against those JAR files using the command-line javac, jar, and java tools. I am using jdk1.7.0_17 on Debian GNU/Linux 6.0.7.
    I have posted a simple example with one utility class, one console application class, and a Makefile:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130520-2134.tar.gz
    Here is a console session:
    2013-05-20 21:39:01 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-20 21:39:12 dpchrist@desktop ~/sandbox/java/jar
    $ cat src/com/example/hello/HelloConsole.java
    package com.example.hello;
    import static com.example.util.Hello.hello;
    public class HelloConsole {
        public static void main(String [] args) {
         hello("world!");
    2013-05-20 21:39:21 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -f hello
    find . -name '*.class' -delete
    javac src/com/example/util/Hello.java
    javac -cp src src/com/example/hello/HelloConsole.java
    echo "java -cp src com.example.hello.HelloConsole" > hello
    chmod +x hello
    2013-05-20 21:39:28 dpchrist@desktop ~/sandbox/java/jar
    $ ./hello
    hello, world!I believe I am looking for:
    1. Command-line invocation of "jar" to put the utility class bytecode file (Hello.class) into a JAR?
    2. Command-line invocation of "javac" to compile the application (HelloConsole.java) against the JAR file?
    3. Command-line invocation of "java" to run the application (HelloConsole.class) against the JAR file?
    I already know how t compile the utility class file.
    Any suggestions?
    TIA,
    David

    I finally figured it out:
    1. All name spaces must match -- identifiers, packages, file system, JAR contents, etc..
    2. Tools must be invoked from specific working directories with specific option arguments, all according to the project name space.
    My key discovery was that if the code says
    import com.example.util.Hello;then the JAR must contain
    com/example/util/Hello.classand I must invoke the compiler and interpreter with an -classpath argument that is the full path to the JAR file
    -classpath ext/com/example/util.jarThe code is here:
    http://holgerdanske.com/users/dpchrist/java/examples/jar-20130525-1301.tar.gz
    Here is a console session that demonstrates building and running the code two ways:
    1. Compiling the utility class into bytecode, compiling the application class against the utility bytecode, and running the application bytecode against the utility bytecode.
    2. Putting the (previously compiled) utility bytecode into a JAR and running the application bytecode against the JAR. (Note that recompiling the application against the JAR was unnecessary.)
    (If you don't know Make, understand that the working directory is reset to the initial working directory prior to each and every command issued by Make):
    2013-05-25 14:02:47 dpchrist@desktop ~/sandbox/java/jar
    $ cat apps/com/example/hello/Console.java
    package com.example.hello;
    import com.example.util.Hello;
    public class Console {
        public static void main(String [] args) {
         Hello.hello("world!");
    2013-05-25 14:02:55 dpchrist@desktop ~/sandbox/java/jar
    $ cat libs/com/example/util/Hello.java
    package com.example.util;
    public class Hello {
        public static void hello(String arg) {
         System.out.println("hello, " + arg);
    2013-05-25 14:03:03 dpchrist@desktop ~/sandbox/java/jar
    $ make
    rm -rf bin ext obj
    mkdir obj
    cd libs; javac -d ../obj com/example/util/Hello.java
    mkdir bin
    cd apps; javac -d ../bin -cp ../obj com/example/hello/Console.java
    cd bin; java -cp .:../obj com.example.hello.Console
    hello, world!
    mkdir -p ext/com/example
    cd obj; jar cvf ../ext/com/example/util.jar com/example/util/Hello.class
    added manifest
    adding: com/example/util/Hello.class(in = 566) (out= 357)(deflated 36%)
    cd bin; java -cp .:../ext/com/example/util.jar com.example.hello.Console
    hello, world!
    2013-05-25 14:03:11 dpchrist@desktop ~/sandbox/java/jar
    $ tree -I CVS .
    |-- Makefile
    |-- apps
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.java
    |-- bin
    |   `-- com
    |       `-- example
    |           `-- hello
    |               `-- Console.class
    |-- ext
    |   `-- com
    |       `-- example
    |           `-- util.jar
    |-- libs
    |   `-- com
    |       `-- example
    |           `-- util
    |               `-- Hello.java
    `-- obj
        `-- com
            `-- example
                `-- util
                    `-- Hello.class
    19 directories, 6 filesHTH,
    David

  • Creating Appication Package that runs just a command line?

    Hi,
    We are trying to uninstall the endpoint protection client that we inadvertently pushed out to a few machines.
    Can we configure an application package with no source that just runs the command line as shown on the target computer in the target collection?
    %windir%\ccmsetup\scepinstall.exe /u /s
    Do I need to add that command to a .cmd file and use that as source?  Is there a better way to do this?
    Thanks Lance

    If you're having bother it would be easier just to use package/program
    or, for only a few machines, do it manually with PSExec.
    http://technet.microsoft.com/en-ie/sysinternals/bb897553.aspx
    Gerry Hampson | Blog:
    www.gerryhampsoncm.blogspot.ie | LinkedIn:
    Gerry Hampson | Twitter:
    @gerryhampson

Maybe you are looking for

  • Login problem with Oracle 10g Express Edition as system user

    I have installed Oracle Database 10g Express Edition, but I can not login inside. I use the following: user: system password: ****** the password witch I put during the installation. As I click Login, the page returns to the same state and wants user

  • TV as PC monitor Windows 7

    Hello, I am using a UN32EH5000F 32'' TV as my monitor. Its connected by a HDMI cable with a DVI adapter on my PC.  My Gpu only has DVI slots. Its great as a monitor, but I have been having signal issues. The TV has been arbitrarily losing signal. Thi

  • TS1702 How do I back up my book to my computer?

    How do I back up my books from my IPad to my computer?

  • ORE 1.3 support for Chinese characters?

    I'm using ORE 1.3 on Linux, and my database tables have some fields containing Chinese string values. These Chinese string can be displayed correctly in Oracle SQL Developer, but in ORE 1.3 when I pull data into a data.frame, they are displayed as '?

  • Pixelated preview - Help!!!

    I'm using color with a variety of codecs. With every one of them, the preview is pixelated. I'm using a second monitor (23" Apple HD Display) for my preview monitor). I don't notice the pixelation when I render out SD footage, BUT when I render out D