Results 1 to 4 of 4

Thread: where is Djava.security.properties location?

  1. #1
    Join Date
    Dec 2023
    Beans
    2

    where is Djava.security.properties location?

    Hi ,
    /etc/java/security is empty
    but it works when i run
    openssl s_server -accept 4443 -cert localhost.pem -key localhost.key | grep ^CIPHER
    keytool -J-Djava.security.properties=file://$HOME/java.security -printcert -sslserver localhost:4443 > /dev/null;echo $?

    but i can't find java.security.properties location?
    i use
    OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
    and Ubuntu 20.04.
    Best regards

  2. #2
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: where is Djava.security.properties location?

    Have you looked in
    Code:
    /etc/java-17-openjdk/security/
    ie:
    Code:
    ls /etc/java-17-openjdk/security/
    blocked.certs   java.policy    nss.cfg  public_suffix_list.dat
    default.policy  java.security  policy
    And on my system Debian 12 xfce4
    Code:
    cd  /etc/java-17-openjdk/
    ### and
    jconsole
    Last edited by 1fallen; December 27th, 2023 at 09:51 PM. Reason: add to help
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  3. #3
    Join Date
    Dec 2023
    Beans
    2

    Re: where is Djava.security.properties location?

    hi.
    thanks i find the files name you add , in /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security , i think because i use different jdk
    thanks for your help
    Best regards

  4. #4
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: where is Djava.security.properties location?

    I find them both the same:
    Code:
    ]─[/etc/java-17-openjdk/security]
    └──╼ $tac java.security |grep Djava
    # or overridden on the command line via -Djava.security.properties
    # or -Djava.security.auth.login.config=somefile. If commented out or set to
    # allowed to be passed on the command line with -Djava.security.policy=somefile
    #   % java -Djava.security.egd=file:/dev/random MainClass
    # -Djava.security.debug=jca property to debug these errors.
    #    -Djava.security.properties==<URL> (2 equals),
    #    -Djava.security.properties=<URL>
    And
    Code:
    ]tac  /usr/lib/jvm/java-17-openjdk-amd64/conf/security/java.security |grep  Djava
    # or overridden on the command line via -Djava.security.properties
    # or -Djava.security.auth.login.config=somefile. If commented out or set to
    # allowed to be passed on the command line with -Djava.security.policy=somefile
    #   % java -Djava.security.egd=file:/dev/random MainClass
    # -Djava.security.debug=jca property to debug these errors.
    #    -Djava.security.properties==<URL> (2 equals),
    #    -Djava.security.properties=<URL>
    Both returns are *cut short* due to length, but both are identical in syntax
    Last edited by 1fallen; December 28th, 2023 at 06:13 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •