jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1334 lines
55 KiB

1 year ago
  1. #
  2. # This is the "master security properties file".
  3. #
  4. # An alternate java.security properties file may be specified
  5. # from the command line via the system property
  6. #
  7. # -Djava.security.properties=<URL>
  8. #
  9. # This properties file appends to the master security properties file.
  10. # If both properties files specify values for the same key, the value
  11. # from the command-line properties file is selected, as it is the last
  12. # one loaded.
  13. #
  14. # Also, if you specify
  15. #
  16. # -Djava.security.properties==<URL> (2 equals),
  17. #
  18. # then that properties file completely overrides the master security
  19. # properties file.
  20. #
  21. # To disable the ability to specify an additional properties file from
  22. # the command line, set the key security.overridePropertiesFile
  23. # to false in the master security properties file. It is set to true
  24. # by default.
  25. # In this file, various security properties are set for use by
  26. # java.security classes. This is where users can statically register
  27. # Cryptography Package Providers ("providers" for short). The term
  28. # "provider" refers to a package or set of packages that supply a
  29. # concrete implementation of a subset of the cryptography aspects of
  30. # the Java Security API. A provider may, for example, implement one or
  31. # more digital signature algorithms or message digest algorithms.
  32. #
  33. # Each provider must implement a subclass of the Provider class.
  34. # To register a provider in this master security properties file,
  35. # specify the provider and priority in the format
  36. #
  37. # security.provider.<n>=<provName | className>
  38. #
  39. # This declares a provider, and specifies its preference
  40. # order n. The preference order is the order in which providers are
  41. # searched for requested algorithms (when no specific provider is
  42. # requested). The order is 1-based; 1 is the most preferred, followed
  43. # by 2, and so on.
  44. #
  45. # <provName> must specify the name of the Provider as passed to its super
  46. # class java.security.Provider constructor. This is for providers loaded
  47. # through the ServiceLoader mechanism.
  48. #
  49. # <className> must specify the subclass of the Provider class whose
  50. # constructor sets the values of various properties that are required
  51. # for the Java Security API to look up the algorithms or other
  52. # facilities implemented by the provider. This is for providers loaded
  53. # through classpath.
  54. #
  55. # Note: Providers can be dynamically registered instead by calls to
  56. # either the addProvider or insertProviderAt method in the Security
  57. # class.
  58. #
  59. # List of providers and their preference orders (see above):
  60. #
  61. security.provider.1=SUN
  62. security.provider.2=SunRsaSign
  63. security.provider.3=SunEC
  64. security.provider.4=SunJSSE
  65. security.provider.5=SunJCE
  66. security.provider.6=SunJGSS
  67. security.provider.7=SunSASL
  68. security.provider.8=XMLDSig
  69. security.provider.9=SunPCSC
  70. security.provider.10=JdkLDAP
  71. security.provider.11=JdkSASL
  72. security.provider.12=SunMSCAPI
  73. security.provider.13=SunPKCS11
  74. #
  75. # A list of preferred providers for specific algorithms. These providers will
  76. # be searched for matching algorithms before the list of registered providers.
  77. # Entries containing errors (parsing, etc) will be ignored. Use the
  78. # -Djava.security.debug=jca property to debug these errors.
  79. #
  80. # The property is a comma-separated list of serviceType.algorithm:provider
  81. # entries. The serviceType (example: "MessageDigest") is optional, and if
  82. # not specified, the algorithm applies to all service types that support it.
  83. # The algorithm is the standard algorithm name or transformation.
  84. # Transformations can be specified in their full standard name
  85. # (ex: AES/CBC/PKCS5Padding), or as partial matches (ex: AES, AES/CBC).
  86. # The provider is the name of the provider. Any provider that does not
  87. # also appear in the registered list will be ignored.
  88. #
  89. # There is a special serviceType for this property only to group a set of
  90. # algorithms together. The type is "Group" and is followed by an algorithm
  91. # keyword. Groups are to simplify and lessen the entries on the property
  92. # line. Current groups are:
  93. # Group.SHA2 = SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, SHA-512/256
  94. # Group.HmacSHA2 = HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512
  95. # Group.SHA2RSA = SHA224withRSA, SHA256withRSA, SHA384withRSA, SHA512withRSA
  96. # Group.SHA2DSA = SHA224withDSA, SHA256withDSA, SHA384withDSA, SHA512withDSA
  97. # Group.SHA2ECDSA = SHA224withECDSA, SHA256withECDSA, SHA384withECDSA, \
  98. # SHA512withECDSA
  99. # Group.SHA3 = SHA3-224, SHA3-256, SHA3-384, SHA3-512
  100. # Group.HmacSHA3 = HmacSHA3-224, HmacSHA3-256, HmacSHA3-384, HmacSHA3-512
  101. #
  102. # Example:
  103. # jdk.security.provider.preferred=AES/GCM/NoPadding:SunJCE, \
  104. # MessageDigest.SHA-256:SUN, Group.HmacSHA2:SunJCE
  105. #
  106. #jdk.security.provider.preferred=
  107. #
  108. # Sun Provider SecureRandom seed source.
  109. #
  110. # Select the primary source of seed data for the "NativePRNG", "SHA1PRNG"
  111. # and "DRBG" SecureRandom implementations in the "Sun" provider.
  112. # (Other SecureRandom implementations might also use this property.)
  113. #
  114. # On Unix-like systems (for example, Linux/MacOS), the
  115. # "NativePRNG", "SHA1PRNG" and "DRBG" implementations obtains seed data from
  116. # special device files such as file:/dev/random.
  117. #
  118. # On Windows systems, specifying the URLs "file:/dev/random" or
  119. # "file:/dev/urandom" will enable the native Microsoft CryptoAPI seeding
  120. # mechanism for SHA1PRNG and DRBG.
  121. #
  122. # By default, an attempt is made to use the entropy gathering device
  123. # specified by the "securerandom.source" Security property. If an
  124. # exception occurs while accessing the specified URL:
  125. #
  126. # NativePRNG:
  127. # a default value of /dev/random will be used. If neither
  128. # are available, the implementation will be disabled.
  129. # "file" is the only currently supported protocol type.
  130. #
  131. # SHA1PRNG and DRBG:
  132. # the traditional system/thread activity algorithm will be used.
  133. #
  134. # The entropy gathering device can also be specified with the System
  135. # property "java.security.egd". For example:
  136. #
  137. # % java -Djava.security.egd=file:/dev/random MainClass
  138. #
  139. # Specifying this System property will override the
  140. # "securerandom.source" Security property.
  141. #
  142. # In addition, if "file:/dev/random" or "file:/dev/urandom" is
  143. # specified, the "NativePRNG" implementation will be more preferred than
  144. # DRBG and SHA1PRNG in the Sun provider.
  145. #
  146. securerandom.source=file:/dev/random
  147. #
  148. # A list of known strong SecureRandom implementations.
  149. #
  150. # To help guide applications in selecting a suitable strong
  151. # java.security.SecureRandom implementation, Java distributions should
  152. # indicate a list of known strong implementations using the property.
  153. #
  154. # This is a comma-separated list of algorithm and/or algorithm:provider
  155. # entries.
  156. #
  157. securerandom.strongAlgorithms=Windows-PRNG:SunMSCAPI,DRBG:SUN
  158. #
  159. # Sun provider DRBG configuration and default instantiation request.
  160. #
  161. # NIST SP 800-90Ar1 lists several DRBG mechanisms. Each can be configured
  162. # with a DRBG algorithm name, and can be instantiated with a security strength,
  163. # prediction resistance support, etc. This property defines the configuration
  164. # and the default instantiation request of "DRBG" SecureRandom implementations
  165. # in the SUN provider. (Other DRBG implementations can also use this property.)
  166. # Applications can request different instantiation parameters like security
  167. # strength, capability, personalization string using one of the
  168. # getInstance(...,SecureRandomParameters,...) methods with a
  169. # DrbgParameters.Instantiation argument, but other settings such as the
  170. # mechanism and DRBG algorithm names are not currently configurable by any API.
  171. #
  172. # Please note that the SUN implementation of DRBG always supports reseeding.
  173. #
  174. # The value of this property is a comma-separated list of all configurable
  175. # aspects. The aspects can appear in any order but the same aspect can only
  176. # appear at most once. Its BNF-style definition is:
  177. #
  178. # Value:
  179. # aspect { "," aspect }
  180. #
  181. # aspect:
  182. # mech_name | algorithm_name | strength | capability | df
  183. #
  184. # // The DRBG mechanism to use. Default "Hash_DRBG"
  185. # mech_name:
  186. # "Hash_DRBG" | "HMAC_DRBG" | "CTR_DRBG"
  187. #
  188. # // The DRBG algorithm name. The "SHA-***" names are for Hash_DRBG and
  189. # // HMAC_DRBG, default "SHA-256". The "AES-***" names are for CTR_DRBG,
  190. # // default "AES-128" when using the limited cryptographic or "AES-256"
  191. # // when using the unlimited.
  192. # algorithm_name:
  193. # "SHA-224" | "SHA-512/224" | "SHA-256" |
  194. # "SHA-512/256" | "SHA-384" | "SHA-512" |
  195. # "AES-128" | "AES-192" | "AES-256"
  196. #
  197. # // Security strength requested. Default "128"
  198. # strength:
  199. # "112" | "128" | "192" | "256"
  200. #
  201. # // Prediction resistance and reseeding request. Default "none"
  202. # // "pr_and_reseed" - Both prediction resistance and reseeding
  203. # // support requested
  204. # // "reseed_only" - Only reseeding support requested
  205. # // "none" - Neither prediction resistance not reseeding
  206. # // support requested
  207. # pr:
  208. # "pr_and_reseed" | "reseed_only" | "none"
  209. #
  210. # // Whether a derivation function should be used. only applicable
  211. # // to CTR_DRBG. Default "use_df"
  212. # df:
  213. # "use_df" | "no_df"
  214. #
  215. # Examples,
  216. # securerandom.drbg.config=Hash_DRBG,SHA-224,112,none
  217. # securerandom.drbg.config=CTR_DRBG,AES-256,192,pr_and_reseed,use_df
  218. #
  219. # The default value is an empty string, which is equivalent to
  220. # securerandom.drbg.config=Hash_DRBG,SHA-256,128,none
  221. #
  222. securerandom.drbg.config=
  223. #
  224. # Class to instantiate as the javax.security.auth.login.Configuration
  225. # provider.
  226. #
  227. login.configuration.provider=sun.security.provider.ConfigFile
  228. #
  229. # Default login configuration file
  230. #
  231. #login.config.url.1=file:${user.home}/.java.login.config
  232. #
  233. # Class to instantiate as the system Policy. This is the name of the class
  234. # that will be used as the Policy object. The system class loader is used to
  235. # locate this class.
  236. #
  237. policy.provider=sun.security.provider.PolicyFile
  238. # The default is to have a single system-wide policy file,
  239. # and a policy file in the user's home directory.
  240. #
  241. policy.url.1=file:${java.home}/conf/security/java.policy
  242. policy.url.2=file:${user.home}/.java.policy
  243. # Controls whether or not properties are expanded in policy and login
  244. # configuration files. If set to false, properties (${...}) will not
  245. # be expanded in policy and login configuration files. If commented out or
  246. # set to an empty string, the default value is "false" for policy files and
  247. # "true" for login configuration files.
  248. #
  249. policy.expandProperties=true
  250. # Controls whether or not an extra policy or login configuration file is
  251. # allowed to be passed on the command line with -Djava.security.policy=somefile
  252. # or -Djava.security.auth.login.config=somefile. If commented out or set to
  253. # an empty string, the default value is "false".
  254. #
  255. policy.allowSystemProperty=true
  256. # whether or not we look into the IdentityScope for trusted Identities
  257. # when encountering a 1.1 signed JAR file. If the identity is found
  258. # and is trusted, we grant it AllPermission. Note: the default policy
  259. # provider (sun.security.provider.PolicyFile) does not support this property.
  260. #
  261. policy.ignoreIdentityScope=false
  262. #
  263. # Default keystore type.
  264. #
  265. keystore.type=pkcs12
  266. #
  267. # Controls compatibility mode for JKS and PKCS12 keystore types.
  268. #
  269. # When set to 'true', both JKS and PKCS12 keystore types support loading
  270. # keystore files in either JKS or PKCS12 format. When set to 'false' the
  271. # JKS keystore type supports loading only JKS keystore files and the PKCS12
  272. # keystore type supports loading only PKCS12 keystore files.
  273. #
  274. keystore.type.compat=true
  275. #
  276. # List of comma-separated packages that start with or equal this string
  277. # will cause a security exception to be thrown when passed to the
  278. # SecurityManager::checkPackageAccess method unless the corresponding
  279. # RuntimePermission("accessClassInPackage."+package) has been granted.
  280. #
  281. package.access=sun.misc.,\
  282. sun.reflect.
  283. #
  284. # List of comma-separated packages that start with or equal this string
  285. # will cause a security exception to be thrown when passed to the
  286. # SecurityManager::checkPackageDefinition method unless the corresponding
  287. # RuntimePermission("defineClassInPackage."+package) has been granted.
  288. #
  289. # By default, none of the class loaders supplied with the JDK call
  290. # checkPackageDefinition.
  291. #
  292. package.definition=sun.misc.,\
  293. sun.reflect.
  294. #
  295. # Determines whether this properties file can be appended to
  296. # or overridden on the command line via -Djava.security.properties
  297. #
  298. security.overridePropertiesFile=true
  299. #
  300. # Determines the default key and trust manager factory algorithms for
  301. # the javax.net.ssl package.
  302. #
  303. ssl.KeyManagerFactory.algorithm=SunX509
  304. ssl.TrustManagerFactory.algorithm=PKIX
  305. #
  306. # The Java-level namelookup cache policy for successful lookups:
  307. #
  308. # any negative value: caching forever
  309. # any positive value: the number of seconds to cache an address for
  310. # zero: do not cache
  311. #
  312. # default value is forever (FOREVER). For security reasons, this
  313. # caching is made forever when a security manager is set. When a security
  314. # manager is not set, the default behavior in this implementation
  315. # is to cache for 30 seconds.
  316. #
  317. # NOTE: setting this to anything other than the default value can have
  318. # serious security implications. Do not set it unless
  319. # you are sure you are not exposed to DNS spoofing attack.
  320. #
  321. #networkaddress.cache.ttl=-1
  322. # The Java-level namelookup cache policy for failed lookups:
  323. #
  324. # any negative value: cache forever
  325. # any positive value: the number of seconds to cache negative lookup results
  326. # zero: do not cache
  327. #
  328. # In some Microsoft Windows networking environments that employ
  329. # the WINS name service in addition to DNS, name service lookups
  330. # that fail may take a noticeably long time to return (approx. 5 seconds).
  331. # For this reason the default caching policy is to maintain these
  332. # results for 10 seconds.
  333. #
  334. networkaddress.cache.negative.ttl=10
  335. #
  336. # Properties to configure OCSP for certificate revocation checking
  337. #
  338. # Enable OCSP
  339. #
  340. # By default, OCSP is not used for certificate revocation checking.
  341. # This property enables the use of OCSP when set to the value "true".
  342. #
  343. # NOTE: SocketPermission is required to connect to an OCSP responder.
  344. #
  345. # Example,
  346. # ocsp.enable=true
  347. #
  348. # Location of the OCSP responder
  349. #
  350. # By default, the location of the OCSP responder is determined implicitly
  351. # from the certificate being validated. This property explicitly specifies
  352. # the location of the OCSP responder. The property is used when the
  353. # Authority Information Access extension (defined in RFC 5280) is absent
  354. # from the certificate or when it requires overriding.
  355. #
  356. # Example,
  357. # ocsp.responderURL=http://ocsp.example.net:80
  358. #
  359. # Subject name of the OCSP responder's certificate
  360. #
  361. # By default, the certificate of the OCSP responder is that of the issuer
  362. # of the certificate being validated. This property identifies the certificate
  363. # of the OCSP responder when the default does not apply. Its value is a string
  364. # distinguished name (defined in RFC 2253) which identifies a certificate in
  365. # the set of certificates supplied during cert path validation. In cases where
  366. # the subject name alone is not sufficient to uniquely identify the certificate
  367. # then both the "ocsp.responderCertIssuerName" and
  368. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  369. # property is set then those two properties are ignored.
  370. #
  371. # Example,
  372. # ocsp.responderCertSubjectName=CN=OCSP Responder, O=XYZ Corp
  373. #
  374. # Issuer name of the OCSP responder's certificate
  375. #
  376. # By default, the certificate of the OCSP responder is that of the issuer
  377. # of the certificate being validated. This property identifies the certificate
  378. # of the OCSP responder when the default does not apply. Its value is a string
  379. # distinguished name (defined in RFC 2253) which identifies a certificate in
  380. # the set of certificates supplied during cert path validation. When this
  381. # property is set then the "ocsp.responderCertSerialNumber" property must also
  382. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  383. # property is ignored.
  384. #
  385. # Example,
  386. # ocsp.responderCertIssuerName=CN=Enterprise CA, O=XYZ Corp
  387. #
  388. # Serial number of the OCSP responder's certificate
  389. #
  390. # By default, the certificate of the OCSP responder is that of the issuer
  391. # of the certificate being validated. This property identifies the certificate
  392. # of the OCSP responder when the default does not apply. Its value is a string
  393. # of hexadecimal digits (colon or space separators may be present) which
  394. # identifies a certificate in the set of certificates supplied during cert path
  395. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  396. # property must also be set. When the "ocsp.responderCertSubjectName" property
  397. # is set then this property is ignored.
  398. #
  399. # Example,
  400. # ocsp.responderCertSerialNumber=2A:FF:00
  401. #
  402. # Policy for failed Kerberos KDC lookups:
  403. #
  404. # When a KDC is unavailable (network error, service failure, etc), it is
  405. # put inside a blacklist and accessed less often for future requests. The
  406. # value (case-insensitive) for this policy can be:
  407. #
  408. # tryLast
  409. # KDCs in the blacklist are always tried after those not on the list.
  410. #
  411. # tryLess[:max_retries,timeout]
  412. # KDCs in the blacklist are still tried by their order in the configuration,
  413. # but with smaller max_retries and timeout values. max_retries and timeout
  414. # are optional numerical parameters (default 1 and 5000, which means once
  415. # and 5 seconds). Please notes that if any of the values defined here is
  416. # more than what is defined in krb5.conf, it will be ignored.
  417. #
  418. # Whenever a KDC is detected as available, it is removed from the blacklist.
  419. # The blacklist is reset when krb5.conf is reloaded. You can add
  420. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  421. # reloaded whenever a JAAS authentication is attempted.
  422. #
  423. # Example,
  424. # krb5.kdc.bad.policy = tryLast
  425. # krb5.kdc.bad.policy = tryLess:2,2000
  426. #
  427. krb5.kdc.bad.policy = tryLast
  428. #
  429. # Kerberos cross-realm referrals (RFC 6806)
  430. #
  431. # OpenJDK's Kerberos client supports cross-realm referrals as defined in
  432. # RFC 6806. This allows to setup more dynamic environments in which clients
  433. # do not need to know in advance how to reach the realm of a target principal
  434. # (either a user or service).
  435. #
  436. # When a client issues an AS or a TGS request, the "canonicalize" option
  437. # is set to announce support of this feature. A KDC server may fulfill the
  438. # request or reply referring the client to a different one. If referred,
  439. # the client will issue a new request and the cycle repeats.
  440. #
  441. # In addition to referrals, the "canonicalize" option allows the KDC server
  442. # to change the client name in response to an AS request. For security reasons,
  443. # RFC 6806 (section 11) FAST scheme is enforced.
  444. #
  445. # Disable Kerberos cross-realm referrals. Value may be overwritten with a
  446. # System property (-Dsun.security.krb5.disableReferrals).
  447. sun.security.krb5.disableReferrals=false
  448. # Maximum number of AS or TGS referrals to avoid infinite loops. Value may
  449. # be overwritten with a System property (-Dsun.security.krb5.maxReferrals).
  450. sun.security.krb5.maxReferrals=5
  451. #
  452. # This property contains a list of disabled EC Named Curves that can be included
  453. # in the jdk.[tls|certpath|jar].disabledAlgorithms properties. To include this
  454. # list in any of the disabledAlgorithms properties, add the property name as
  455. # an entry.
  456. #jdk.disabled.namedCurves=
  457. #
  458. # Algorithm restrictions for certification path (CertPath) processing
  459. #
  460. # In some environments, certain algorithms or key lengths may be undesirable
  461. # for certification path building and validation. For example, "MD2" is
  462. # generally no longer considered to be a secure hash algorithm. This section
  463. # describes the mechanism for disabling algorithms based on algorithm name
  464. # and/or key length. This includes algorithms used in certificates, as well
  465. # as revocation information such as CRLs and signed OCSP Responses.
  466. # The syntax of the disabled algorithm string is described as follows:
  467. # DisabledAlgorithms:
  468. # " DisabledAlgorithm { , DisabledAlgorithm } "
  469. #
  470. # DisabledAlgorithm:
  471. # AlgorithmName [Constraint] { '&' Constraint } | IncludeProperty
  472. #
  473. # AlgorithmName:
  474. # (see below)
  475. #
  476. # Constraint:
  477. # KeySizeConstraint | CAConstraint | DenyAfterConstraint |
  478. # UsageConstraint
  479. #
  480. # KeySizeConstraint:
  481. # keySize Operator KeyLength
  482. #
  483. # Operator:
  484. # <= | < | == | != | >= | >
  485. #
  486. # KeyLength:
  487. # Integer value of the algorithm's key length in bits
  488. #
  489. # CAConstraint:
  490. # jdkCA
  491. #
  492. # DenyAfterConstraint:
  493. # denyAfter YYYY-MM-DD
  494. #
  495. # UsageConstraint:
  496. # usage [TLSServer] [TLSClient] [SignedJAR]
  497. #
  498. # IncludeProperty:
  499. # include <security property>
  500. #
  501. # The "AlgorithmName" is the standard algorithm name of the disabled
  502. # algorithm. See the Java Security Standard Algorithm Names Specification
  503. # for information about Standard Algorithm Names. Matching is
  504. # performed using a case-insensitive sub-element matching rule. (For
  505. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  506. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  507. # sub-element of the certificate algorithm name, the algorithm will be
  508. # rejected during certification path building and validation. For example,
  509. # the assertion algorithm name "DSA" will disable all certificate algorithms
  510. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  511. # will not disable algorithms related to "ECDSA".
  512. #
  513. # The "IncludeProperty" allows a implementation-defined security property that
  514. # can be included in the disabledAlgorithms properties. These properties are
  515. # to help manage common actions easier across multiple disabledAlgorithm
  516. # properties.
  517. # There is one defined security property: jdk.disabled.NamedCurves
  518. # See the property for more specific details.
  519. #
  520. #
  521. # A "Constraint" defines restrictions on the keys and/or certificates for
  522. # a specified AlgorithmName:
  523. #
  524. # KeySizeConstraint:
  525. # keySize Operator KeyLength
  526. # The constraint requires a key of a valid size range if the
  527. # "AlgorithmName" is of a key algorithm. The "KeyLength" indicates
  528. # the key size specified in number of bits. For example,
  529. # "RSA keySize <= 1024" indicates that any RSA key with key size less
  530. # than or equal to 1024 bits should be disabled, and
  531. # "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key
  532. # with key size less than 1024 or greater than 2048 should be disabled.
  533. # This constraint is only used on algorithms that have a key size.
  534. #
  535. # CAConstraint:
  536. # jdkCA
  537. # This constraint prohibits the specified algorithm only if the
  538. # algorithm is used in a certificate chain that terminates at a marked
  539. # trust anchor in the lib/security/cacerts keystore. If the jdkCA
  540. # constraint is not set, then all chains using the specified algorithm
  541. # are restricted. jdkCA may only be used once in a DisabledAlgorithm
  542. # expression.
  543. # Example: To apply this constraint to SHA-1 certificates, include
  544. # the following: "SHA1 jdkCA"
  545. #
  546. # DenyAfterConstraint:
  547. # denyAfter YYYY-MM-DD
  548. # This constraint prohibits a certificate with the specified algorithm
  549. # from being used after the date regardless of the certificate's
  550. # validity. JAR files that are signed and timestamped before the
  551. # constraint date with certificates containing the disabled algorithm
  552. # will not be restricted. The date is processed in the UTC timezone.
  553. # This constraint can only be used once in a DisabledAlgorithm
  554. # expression.
  555. # Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020,
  556. # use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"
  557. #
  558. # UsageConstraint:
  559. # usage [TLSServer] [TLSClient] [SignedJAR]
  560. # This constraint prohibits the specified algorithm for
  561. # a specified usage. This should be used when disabling an algorithm
  562. # for all usages is not practical. 'TLSServer' restricts the algorithm
  563. # in TLS server certificate chains when server authentication is
  564. # performed. 'TLSClient' restricts the algorithm in TLS client
  565. # certificate chains when client authentication is performed.
  566. # 'SignedJAR' constrains use of certificates in signed jar files.
  567. # The usage type follows the keyword and more than one usage type can
  568. # be specified with a whitespace delimiter.
  569. # Example: "SHA1 usage TLSServer TLSClient"
  570. #
  571. # When an algorithm must satisfy more than one constraint, it must be
  572. # delimited by an ampersand '&'. For example, to restrict certificates in a
  573. # chain that terminate at a distribution provided trust anchor and contain
  574. # RSA keys that are less than or equal to 1024 bits, add the following
  575. # constraint: "RSA keySize <= 1024 & jdkCA".
  576. #
  577. # All DisabledAlgorithms expressions are processed in the order defined in the
  578. # property. This requires lower keysize constraints to be specified
  579. # before larger keysize constraints of the same algorithm. For example:
  580. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  581. #
  582. # Note: The algorithm restrictions do not apply to trust anchors or
  583. # self-signed certificates.
  584. #
  585. # Note: This property is currently used by Oracle's PKIX implementation. It
  586. # is not guaranteed to be examined and used by other implementations.
  587. #
  588. # Example:
  589. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  590. #
  591. #
  592. jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
  593. RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
  594. #
  595. # Legacy algorithms for certification path (CertPath) processing and
  596. # signed JAR files.
  597. #
  598. # In some environments, a certain algorithm or key length may be undesirable
  599. # but is not yet disabled.
  600. #
  601. # Tools such as keytool and jarsigner may emit warnings when these legacy
  602. # algorithms are used. See the man pages for those tools for more information.
  603. #
  604. # The syntax is the same as the "jdk.certpath.disabledAlgorithms" and
  605. # "jdk.jar.disabledAlgorithms" security properties.
  606. #
  607. # Note: This property is currently used by the JDK Reference
  608. # implementation. It is not guaranteed to be examined and used by other
  609. # implementations.
  610. jdk.security.legacyAlgorithms=SHA1, \
  611. RSA keySize < 2048, DSA keySize < 2048
  612. #
  613. # Algorithm restrictions for signed JAR files
  614. #
  615. # In some environments, certain algorithms or key lengths may be undesirable
  616. # for signed JAR validation. For example, "MD2" is generally no longer
  617. # considered to be a secure hash algorithm. This section describes the
  618. # mechanism for disabling algorithms based on algorithm name and/or key length.
  619. # JARs signed with any of the disabled algorithms or key sizes will be treated
  620. # as unsigned.
  621. #
  622. # The syntax of the disabled algorithm string is described as follows:
  623. # DisabledAlgorithms:
  624. # " DisabledAlgorithm { , DisabledAlgorithm } "
  625. #
  626. # DisabledAlgorithm:
  627. # AlgorithmName [Constraint] { '&' Constraint }
  628. #
  629. # AlgorithmName:
  630. # (see below)
  631. #
  632. # Constraint:
  633. # KeySizeConstraint | DenyAfterConstraint
  634. #
  635. # KeySizeConstraint:
  636. # keySize Operator KeyLength
  637. #
  638. # DenyAfterConstraint:
  639. # denyAfter YYYY-MM-DD
  640. #
  641. # Operator:
  642. # <= | < | == | != | >= | >
  643. #
  644. # KeyLength:
  645. # Integer value of the algorithm's key length in bits
  646. #
  647. # Note: This property is currently used by the JDK Reference
  648. # implementation. It is not guaranteed to be examined and used by other
  649. # implementations.
  650. #
  651. # See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
  652. #
  653. jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
  654. DSA keySize < 1024
  655. #
  656. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  657. # (SSL/TLS/DTLS) processing
  658. #
  659. # In some environments, certain algorithms or key lengths may be undesirable
  660. # when using SSL/TLS/DTLS. This section describes the mechanism for disabling
  661. # algorithms during SSL/TLS/DTLS security parameters negotiation, including
  662. # protocol version negotiation, cipher suites selection, named groups
  663. # selection, signature schemes selection, peer authentication and key
  664. # exchange mechanisms.
  665. #
  666. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  667. # if they are enabled explicitly in an application.
  668. #
  669. # For PKI-based peer authentication and key exchange mechanisms, this list
  670. # of disabled algorithms will also be checked during certification path
  671. # building and validation, including algorithms used in certificates, as
  672. # well as revocation information such as CRLs and signed OCSP Responses.
  673. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  674. #
  675. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  676. # syntax of the disabled algorithm string.
  677. #
  678. # Note: The algorithm restrictions do not apply to trust anchors or
  679. # self-signed certificates.
  680. #
  681. # Note: This property is currently used by the JDK Reference implementation.
  682. # It is not guaranteed to be examined and used by other implementations.
  683. #
  684. # Example:
  685. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048, \
  686. # rsa_pkcs1_sha1, secp224r1
  687. jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \
  688. DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL
  689. #
  690. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  691. # processing in JSSE implementation.
  692. #
  693. # In some environments, a certain algorithm may be undesirable but it
  694. # cannot be disabled because of its use in legacy applications. Legacy
  695. # algorithms may still be supported, but applications should not use them
  696. # as the security strength of legacy algorithms are usually not strong enough
  697. # in practice.
  698. #
  699. # During SSL/TLS security parameters negotiation, legacy algorithms will
  700. # not be negotiated unless there are no other candidates.
  701. #
  702. # The syntax of the legacy algorithms string is described as this Java
  703. # BNF-style:
  704. # LegacyAlgorithms:
  705. # " LegacyAlgorithm { , LegacyAlgorithm } "
  706. #
  707. # LegacyAlgorithm:
  708. # AlgorithmName (standard JSSE algorithm name)
  709. #
  710. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  711. # for the syntax and description of the "AlgorithmName" notation.
  712. #
  713. # Per SSL/TLS specifications, cipher suites have the form:
  714. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  715. # or
  716. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  717. #
  718. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  719. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  720. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  721. # algorithm for HMAC.
  722. #
  723. # The LegacyAlgorithm can be one of the following standard algorithm names:
  724. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  725. # 2. JSSE key exchange algorithm name, e.g., RSA
  726. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  727. # 4. JSSE message digest algorithm name, e.g., SHA
  728. #
  729. # See SSL/TLS specifications and the Java Security Standard Algorithm Names
  730. # Specification for information about the algorithm names.
  731. #
  732. # Note: If a legacy algorithm is also restricted through the
  733. # jdk.tls.disabledAlgorithms property or the
  734. # java.security.AlgorithmConstraints API (See
  735. # javax.net.ssl.SSLParameters.setAlgorithmConstraints()),
  736. # then the algorithm is completely disabled and will not be negotiated.
  737. #
  738. # Note: This property is currently used by the JDK Reference implementation.
  739. # It is not guaranteed to be examined and used by other implementations.
  740. # There is no guarantee the property will continue to exist or be of the
  741. # same syntax in future releases.
  742. #
  743. # Example:
  744. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  745. #
  746. jdk.tls.legacyAlgorithms=NULL, anon, RC4, DES, 3DES_EDE_CBC
  747. #
  748. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  749. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  750. #
  751. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  752. # negotiation mechanism is not used, the server offers the client group
  753. # parameters, base generator g and prime modulus p, for DHE key exchange.
  754. # It is recommended to use dynamic group parameters. This property defines
  755. # a mechanism that allows you to specify custom group parameters.
  756. #
  757. # The syntax of this property string is described as this Java BNF-style:
  758. # DefaultDHEParameters:
  759. # DefinedDHEParameters { , DefinedDHEParameters }
  760. #
  761. # DefinedDHEParameters:
  762. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  763. #
  764. # DHEPrimeModulus:
  765. # HexadecimalDigits
  766. #
  767. # DHEBaseGenerator:
  768. # HexadecimalDigits
  769. #
  770. # HexadecimalDigits:
  771. # HexadecimalDigit { HexadecimalDigit }
  772. #
  773. # HexadecimalDigit: one of
  774. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  775. #
  776. # Whitespace characters are ignored.
  777. #
  778. # The "DefinedDHEParameters" defines the custom group parameters, prime
  779. # modulus p and base generator g, for a particular size of prime modulus p.
  780. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  781. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  782. # parameter. It is recommended to use safe primes for the custom group
  783. # parameters.
  784. #
  785. # If this property is not defined or the value is empty, the underlying JSSE
  786. # provider's default group parameter is used for each connection.
  787. #
  788. # If the property value does not follow the grammar, or a particular group
  789. # parameter is not valid, the connection will fall back and use the
  790. # underlying JSSE provider's default group parameter.
  791. #
  792. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  793. # is not guaranteed to be examined and used by other implementations.
  794. #
  795. # Example:
  796. # jdk.tls.server.defaultDHEParameters=
  797. # { \
  798. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  799. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  800. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  801. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  802. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  803. # FFFFFFFF FFFFFFFF, 2}
  804. #
  805. # TLS key limits on symmetric cryptographic algorithms
  806. #
  807. # This security property sets limits on algorithms key usage in TLS 1.3.
  808. # When the amount of data encrypted exceeds the algorithm value listed below,
  809. # a KeyUpdate message will trigger a key change. This is for symmetric ciphers
  810. # with TLS 1.3 only.
  811. #
  812. # The syntax for the property is described below:
  813. # KeyLimits:
  814. # " KeyLimit { , KeyLimit } "
  815. #
  816. # WeakKeyLimit:
  817. # AlgorithmName Action Length
  818. #
  819. # AlgorithmName:
  820. # A full algorithm transformation.
  821. #
  822. # Action:
  823. # KeyUpdate
  824. #
  825. # Length:
  826. # The amount of encrypted data in a session before the Action occurs
  827. # This value may be an integer value in bytes, or as a power of two, 2^29.
  828. #
  829. # KeyUpdate:
  830. # The TLS 1.3 KeyUpdate handshake process begins when the Length amount
  831. # is fulfilled.
  832. #
  833. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  834. # is not guaranteed to be examined and used by other implementations.
  835. #
  836. jdk.tls.keyLimits=AES/GCM/NoPadding KeyUpdate 2^37
  837. #
  838. # Cryptographic Jurisdiction Policy defaults
  839. #
  840. # Import and export control rules on cryptographic software vary from
  841. # country to country. By default, Java provides two different sets of
  842. # cryptographic policy files[1]:
  843. #
  844. # unlimited: These policy files contain no restrictions on cryptographic
  845. # strengths or algorithms
  846. #
  847. # limited: These policy files contain more restricted cryptographic
  848. # strengths
  849. #
  850. # The default setting is determined by the value of the "crypto.policy"
  851. # Security property below. If your country or usage requires the
  852. # traditional restrictive policy, the "limited" Java cryptographic
  853. # policy is still available and may be appropriate for your environment.
  854. #
  855. # If you have restrictions that do not fit either use case mentioned
  856. # above, Java provides the capability to customize these policy files.
  857. # The "crypto.policy" security property points to a subdirectory
  858. # within <java-home>/conf/security/policy/ which can be customized.
  859. # Please see the <java-home>/conf/security/policy/README.txt file or consult
  860. # the Java Security Guide/JCA documentation for more information.
  861. #
  862. # YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY
  863. # TO DETERMINE THE EXACT REQUIREMENTS.
  864. #
  865. # [1] Please note that the JCE for Java SE, including the JCE framework,
  866. # cryptographic policy files, and standard JCE providers provided with
  867. # the Java SE, have been reviewed and approved for export as mass market
  868. # encryption item by the US Bureau of Industry and Security.
  869. #
  870. # Note: This property is currently used by the JDK Reference implementation.
  871. # It is not guaranteed to be examined and used by other implementations.
  872. #
  873. crypto.policy=unlimited
  874. #
  875. # The policy for the XML Signature secure validation mode. The mode is
  876. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  877. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  878. # or by running the code with a SecurityManager.
  879. #
  880. # Policy:
  881. # Constraint {"," Constraint }
  882. # Constraint:
  883. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  884. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  885. # AlgConstraint
  886. # "disallowAlg" Uri
  887. # MaxTransformsConstraint:
  888. # "maxTransforms" Integer
  889. # MaxReferencesConstraint:
  890. # "maxReferences" Integer
  891. # ReferenceUriSchemeConstraint:
  892. # "disallowReferenceUriSchemes" String { String }
  893. # KeySizeConstraint:
  894. # "minKeySize" KeyAlg Integer
  895. # OtherConstraint:
  896. # "noDuplicateIds" | "noRetrievalMethodLoops"
  897. #
  898. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  899. # See the XML Signature Recommendation for more information on algorithm
  900. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  901. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  902. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  903. # specified more than once, only the last entry is enforced.
  904. #
  905. # Note: This property is currently used by the JDK Reference implementation. It
  906. # is not guaranteed to be examined and used by other implementations.
  907. #
  908. jdk.xml.dsig.secureValidationPolicy=\
  909. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  910. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  911. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  912. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  913. maxTransforms 5,\
  914. maxReferences 30,\
  915. disallowReferenceUriSchemes file http https,\
  916. minKeySize RSA 1024,\
  917. minKeySize DSA 1024,\
  918. minKeySize EC 224,\
  919. noDuplicateIds,\
  920. noRetrievalMethodLoops
  921. #
  922. # Serialization system-wide filter
  923. #
  924. # A filter, if configured, is used by java.io.ObjectInputStream during
  925. # deserialization to check the contents of the stream.
  926. # A filter is configured as a sequence of patterns, each pattern is either
  927. # matched against the name of a class in the stream or defines a limit.
  928. # Patterns are separated by ";" (semicolon).
  929. # Whitespace is significant and is considered part of the pattern.
  930. #
  931. # If the system property jdk.serialFilter is also specified, it supersedes
  932. # the security property value defined here.
  933. #
  934. # If a pattern includes a "=", it sets a limit.
  935. # If a limit appears more than once the last value is used.
  936. # Limits are checked before classes regardless of the order in the
  937. # sequence of patterns.
  938. # If any of the limits are exceeded, the filter status is REJECTED.
  939. #
  940. # maxdepth=value - the maximum depth of a graph
  941. # maxrefs=value - the maximum number of internal references
  942. # maxbytes=value - the maximum number of bytes in the input stream
  943. # maxarray=value - the maximum array length allowed
  944. #
  945. # Other patterns, from left to right, match the class or package name as
  946. # returned from Class.getName.
  947. # If the class is an array type, the class or package to be matched is the
  948. # element type.
  949. # Arrays of any number of dimensions are treated the same as the element type.
  950. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  951. # array of example.Foo.
  952. #
  953. # If the pattern starts with "!", the status is REJECTED if the remaining
  954. # pattern is matched; otherwise the status is ALLOWED if the pattern matches.
  955. # If the pattern contains "/", the non-empty prefix up to the "/" is the
  956. # module name;
  957. # if the module name matches the module name of the class then
  958. # the remaining pattern is matched with the class name.
  959. # If there is no "/", the module name is not compared.
  960. # If the pattern ends with ".**" it matches any class in the package and all
  961. # subpackages.
  962. # If the pattern ends with ".*" it matches any class in the package.
  963. # If the pattern ends with "*", it matches any class with the pattern as a
  964. # prefix.
  965. # If the pattern is equal to the class name, it matches.
  966. # Otherwise, the status is UNDECIDED.
  967. #
  968. #jdk.serialFilter=pattern;pattern
  969. #
  970. # RMI Registry Serial Filter
  971. #
  972. # The filter pattern uses the same format as jdk.serialFilter.
  973. # This filter can override the builtin filter if additional types need to be
  974. # allowed or rejected from the RMI Registry or to decrease limits but not
  975. # to increase limits.
  976. # If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected.
  977. #
  978. # Each non-array type is allowed or rejected if it matches one of the patterns,
  979. # evaluated from left to right, and is otherwise allowed. Arrays of any
  980. # component type, including subarrays and arrays of primitives, are allowed.
  981. #
  982. # Array construction of any component type, including subarrays and arrays of
  983. # primitives, are allowed unless the length is greater than the maxarray limit.
  984. # The filter is applied to each array element.
  985. #
  986. # Note: This property is currently used by the JDK Reference implementation.
  987. # It is not guaranteed to be examined and used by other implementations.
  988. #
  989. # The built-in filter allows subclasses of allowed classes and
  990. # can approximately be represented as the pattern:
  991. #
  992. #sun.rmi.registry.registryFilter=\
  993. # maxarray=1000000;\
  994. # maxdepth=20;\
  995. # java.lang.String;\
  996. # java.lang.Number;\
  997. # java.lang.reflect.Proxy;\
  998. # java.rmi.Remote;\
  999. # sun.rmi.server.UnicastRef;\
  1000. # sun.rmi.server.RMIClientSocketFactory;\
  1001. # sun.rmi.server.RMIServerSocketFactory;\
  1002. # java.rmi.activation.ActivationID;\
  1003. # java.rmi.server.UID
  1004. #
  1005. # RMI Distributed Garbage Collector (DGC) Serial Filter
  1006. #
  1007. # The filter pattern uses the same format as jdk.serialFilter.
  1008. # This filter can override the builtin filter if additional types need to be
  1009. # allowed or rejected from the RMI DGC.
  1010. #
  1011. # Note: This property is currently used by the JDK Reference implementation.
  1012. # It is not guaranteed to be examined and used by other implementations.
  1013. #
  1014. # The builtin DGC filter can approximately be represented as the filter pattern:
  1015. #
  1016. #sun.rmi.transport.dgcFilter=\
  1017. # java.rmi.server.ObjID;\
  1018. # java.rmi.server.UID;\
  1019. # java.rmi.dgc.VMID;\
  1020. # java.rmi.dgc.Lease;\
  1021. # maxdepth=5;maxarray=10000
  1022. #
  1023. # JCEKS Encrypted Key Serial Filter
  1024. #
  1025. # This filter, if configured, is used by the JCEKS KeyStore during the
  1026. # deserialization of the encrypted Key object stored inside a key entry.
  1027. # If not configured or the filter result is UNDECIDED (i.e. none of the patterns
  1028. # matches), the filter configured by jdk.serialFilter will be consulted.
  1029. #
  1030. # If the system property jceks.key.serialFilter is also specified, it supersedes
  1031. # the security property value defined here.
  1032. #
  1033. # The filter pattern uses the same format as jdk.serialFilter. The default
  1034. # pattern allows java.lang.Enum, java.security.KeyRep, java.security.KeyRep$Type,
  1035. # and javax.crypto.spec.SecretKeySpec and rejects all the others.
  1036. jceks.key.serialFilter = java.base/java.lang.Enum;java.base/java.security.KeyRep;\
  1037. java.base/java.security.KeyRep$Type;java.base/javax.crypto.spec.SecretKeySpec;!*
  1038. # The iteration count used for password-based encryption (PBE) in JCEKS
  1039. # keystores. Values in the range 10000 to 5000000 are considered valid.
  1040. # If the value is out of this range, or is not a number, or is unspecified;
  1041. # a default of 200000 is used.
  1042. #
  1043. # If the system property jdk.jceks.iterationCount is also specified, it
  1044. # supersedes the security property value defined here.
  1045. #
  1046. #jdk.jceks.iterationCount = 200000
  1047. #
  1048. # PKCS12 KeyStore properties
  1049. #
  1050. # The following properties, if configured, are used by the PKCS12 KeyStore
  1051. # implementation during the creation of a new keystore. Several of the
  1052. # properties may also be used when modifying an existing keystore. The
  1053. # properties can be overridden by a KeyStore API that specifies its own
  1054. # algorithms and parameters.
  1055. #
  1056. # If an existing PKCS12 keystore is loaded and then stored, the algorithm and
  1057. # parameter used to generate the existing Mac will be reused. If the existing
  1058. # keystore does not have a Mac, no Mac will be created while storing. If there
  1059. # is at least one certificate in the existing keystore, the algorithm and
  1060. # parameters used to encrypt the last certificate in the existing keystore will
  1061. # be reused to encrypt all certificates while storing. If the last certificate
  1062. # in the existing keystore is not encrypted, all certificates will be stored
  1063. # unencrypted. If there is no certificate in the existing keystore, any newly
  1064. # added certificate will be encrypted (or stored unencrypted if algorithm
  1065. # value is "NONE") using the "keystore.pkcs12.certProtectionAlgorithm" and
  1066. # "keystore.pkcs12.certPbeIterationCount" values defined here. Existing private
  1067. # and secret key(s) are not changed. Newly set private and secret key(s) will
  1068. # be encrypted using the "keystore.pkcs12.keyProtectionAlgorithm" and
  1069. # "keystore.pkcs12.keyPbeIterationCount" values defined here.
  1070. #
  1071. # In order to apply new algorithms and parameters to all entries in an
  1072. # existing keystore, one can create a new keystore and add entries in the
  1073. # existing keystore into the new keystore. This can be achieved by calling the
  1074. # "keytool -importkeystore" command.
  1075. #
  1076. # If a system property of the same name is also specified, it supersedes the
  1077. # security property value defined here.
  1078. #
  1079. # If the property is set to an illegal value,
  1080. # an iteration count that is not a positive integer, or an unknown algorithm
  1081. # name, an exception will be thrown when the property is used.
  1082. # If the property is not set or empty, a default value will be used.
  1083. #
  1084. # Note: These properties are currently used by the JDK Reference implementation.
  1085. # They are not guaranteed to be examined and used by other implementations.
  1086. # The algorithm used to encrypt a certificate. This can be any non-Hmac PBE
  1087. # algorithm defined in the Cipher section of the Java Security Standard
  1088. # Algorithm Names Specification. When set to "NONE", the certificate
  1089. # is not encrypted. The default value is "PBEWithHmacSHA256AndAES_256".
  1090. #keystore.pkcs12.certProtectionAlgorithm = PBEWithHmacSHA256AndAES_256
  1091. # The iteration count used by the PBE algorithm when encrypting a certificate.
  1092. # This value must be a positive integer. The default value is 10000.
  1093. #keystore.pkcs12.certPbeIterationCount = 10000
  1094. # The algorithm used to encrypt a private key or secret key. This can be
  1095. # any non-Hmac PBE algorithm defined in the Cipher section of the Java
  1096. # Security Standard Algorithm Names Specification. The value must not be "NONE".
  1097. # The default value is "PBEWithHmacSHA256AndAES_256".
  1098. #keystore.pkcs12.keyProtectionAlgorithm = PBEWithHmacSHA256AndAES_256
  1099. # The iteration count used by the PBE algorithm when encrypting a private key
  1100. # or a secret key. This value must be a positive integer. The default value
  1101. # is 10000.
  1102. #keystore.pkcs12.keyPbeIterationCount = 10000
  1103. # The algorithm used to calculate the optional MacData at the end of a PKCS12
  1104. # file. This can be any HmacPBE algorithm defined in the Mac section of the
  1105. # Java Security Standard Algorithm Names Specification. When set to "NONE",
  1106. # no Mac is generated. The default value is "HmacPBESHA256".
  1107. #keystore.pkcs12.macAlgorithm = HmacPBESHA256
  1108. # The iteration count used by the MacData algorithm. This value must be a
  1109. # positive integer. The default value is 10000.
  1110. #keystore.pkcs12.macIterationCount = 10000
  1111. #
  1112. # Enhanced exception message information
  1113. #
  1114. # By default, exception messages should not include potentially sensitive
  1115. # information such as file names, host names, or port numbers. This property
  1116. # accepts one or more comma separated values, each of which represents a
  1117. # category of enhanced exception message information to enable. Values are
  1118. # case-insensitive. Leading and trailing whitespaces, surrounding each value,
  1119. # are ignored. Unknown values are ignored.
  1120. #
  1121. # NOTE: Use caution before setting this property. Setting this property
  1122. # exposes sensitive information in Exceptions, which could, for example,
  1123. # propagate to untrusted code or be emitted in stack traces that are
  1124. # inadvertently disclosed and made accessible over a public network.
  1125. #
  1126. # The categories are:
  1127. #
  1128. # hostInfo - IOExceptions thrown by java.net.Socket and the socket types in the
  1129. # java.nio.channels package will contain enhanced exception
  1130. # message information
  1131. #
  1132. # jar - enables more detailed information in the IOExceptions thrown
  1133. # by classes in the java.util.jar package
  1134. #
  1135. # The property setting in this file can be overridden by a system property of
  1136. # the same name, with the same syntax and possible values.
  1137. #
  1138. #jdk.includeInExceptions=hostInfo,jar
  1139. #
  1140. # Disabled mechanisms for the Simple Authentication and Security Layer (SASL)
  1141. #
  1142. # Disabled mechanisms will not be negotiated by both SASL clients and servers.
  1143. # These mechanisms will be ignored if they are specified in the "mechanisms"
  1144. # argument of "Sasl.createSaslClient" or the "mechanism" argument of
  1145. # "Sasl.createSaslServer".
  1146. #
  1147. # The value of this property is a comma-separated list of SASL mechanisms.
  1148. # The mechanisms are case-sensitive. Whitespaces around the commas are ignored.
  1149. #
  1150. # Note: This property is currently used by the JDK Reference implementation.
  1151. # It is not guaranteed to be examined and used by other implementations.
  1152. #
  1153. # Example:
  1154. # jdk.sasl.disabledMechanisms=PLAIN, CRAM-MD5, DIGEST-MD5
  1155. jdk.sasl.disabledMechanisms=
  1156. #
  1157. # Policies for distrusting Certificate Authorities (CAs).
  1158. #
  1159. # This is a comma separated value of one or more case-sensitive strings, each
  1160. # of which represents a policy for determining if a CA should be distrusted.
  1161. # The supported values are:
  1162. #
  1163. # SYMANTEC_TLS : Distrust TLS Server certificates anchored by a Symantec
  1164. # root CA and issued after April 16, 2019 unless issued by one of the
  1165. # following subordinate CAs which have a later distrust date:
  1166. # 1. Apple IST CA 2 - G1, SHA-256 fingerprint:
  1167. # AC2B922ECFD5E01711772FEA8ED372DE9D1E2245FCE3F57A9CDBEC77296A424B
  1168. # Distrust after December 31, 2019.
  1169. # 2. Apple IST CA 8 - G1, SHA-256 fingerprint:
  1170. # A4FE7C7F15155F3F0AEF7AAA83CF6E06DEB97CA3F909DF920AC1490882D488ED
  1171. # Distrust after December 31, 2019.
  1172. #
  1173. # Leading and trailing whitespace surrounding each value are ignored.
  1174. # Unknown values are ignored. If the property is commented out or set to the
  1175. # empty String, no policies are enforced.
  1176. #
  1177. # Note: This property is currently used by the JDK Reference implementation.
  1178. # It is not guaranteed to be supported by other SE implementations. Also, this
  1179. # property does not override other security properties which can restrict
  1180. # certificates such as jdk.tls.disabledAlgorithms or
  1181. # jdk.certpath.disabledAlgorithms; those restrictions are still enforced even
  1182. # if this property is not enabled.
  1183. #
  1184. jdk.security.caDistrustPolicies=SYMANTEC_TLS
  1185. #
  1186. # FilePermission path canonicalization
  1187. #
  1188. # This security property dictates how the path argument is processed and stored
  1189. # while constructing a FilePermission object. If the value is set to true, the
  1190. # path argument is canonicalized and FilePermission methods (such as implies,
  1191. # equals, and hashCode) are implemented based on this canonicalized result.
  1192. # Otherwise, the path argument is not canonicalized and FilePermission methods are
  1193. # implemented based on the original input. See the implementation note of the
  1194. # FilePermission class for more details.
  1195. #
  1196. # If a system property of the same name is also specified, it supersedes the
  1197. # security property value defined here.
  1198. #
  1199. # The default value for this property is false.
  1200. #
  1201. jdk.io.permissionsUseCanonicalPath=false
  1202. #
  1203. # Policies for the proxy_impersonator Kerberos ccache configuration entry
  1204. #
  1205. # The proxy_impersonator ccache configuration entry indicates that the ccache
  1206. # is a synthetic delegated credential for use with S4U2Proxy by an intermediate
  1207. # server. The ccache file should also contain the TGT of this server and
  1208. # an evidence ticket from the default principal of the ccache to this server.
  1209. #
  1210. # This security property determines how Java uses this configuration entry.
  1211. # There are 3 possible values:
  1212. #
  1213. # no-impersonate - Ignore this configuration entry, and always act as
  1214. # the owner of the TGT (if it exists).
  1215. #
  1216. # try-impersonate - Try impersonation when this configuration entry exists.
  1217. # If no matching TGT or evidence ticket is found,
  1218. # fallback to no-impersonate.
  1219. #
  1220. # always-impersonate - Always impersonate when this configuration entry exists.
  1221. # If no matching TGT or evidence ticket is found,
  1222. # no initial credential is read from the ccache.
  1223. #
  1224. # The default value is "always-impersonate".
  1225. #
  1226. # If a system property of the same name is also specified, it supersedes the
  1227. # security property value defined here.
  1228. #
  1229. #jdk.security.krb5.default.initiate.credential=always-impersonate
  1230. #
  1231. # Trust Anchor Certificates - CA Basic Constraint check
  1232. #
  1233. # X.509 v3 certificates used as Trust Anchors (to validate signed code or TLS
  1234. # connections) must have the cA Basic Constraint field set to 'true'. Also, if
  1235. # they include a Key Usage extension, the keyCertSign bit must be set. These
  1236. # checks, enabled by default, can be disabled for backward-compatibility
  1237. # purposes with the jdk.security.allowNonCaAnchor System and Security
  1238. # properties. In the case that both properties are simultaneously set, the
  1239. # System value prevails. The default value of the property is "false".
  1240. #
  1241. #jdk.security.allowNonCaAnchor=true
  1242. #
  1243. # The default Character set name (java.nio.charset.Charset.forName())
  1244. # for converting TLS ALPN values between byte arrays and Strings.
  1245. # Prior versions of the JDK may use UTF-8 as the default charset. If
  1246. # you experience interoperability issues, setting this property to UTF-8
  1247. # may help.
  1248. #
  1249. # jdk.tls.alpnCharset=UTF-8
  1250. jdk.tls.alpnCharset=ISO_8859_1
  1251. #
  1252. # JNDI Object Factories Filter
  1253. #
  1254. # This filter is used by the JNDI runtime to control the set of object factory classes
  1255. # which will be allowed to instantiate objects from object references returned by
  1256. # naming/directory systems. The factory class named by the reference instance will be
  1257. # matched against this filter. The filter property supports pattern-based filter syntax
  1258. # with the same format as jdk.serialFilter.
  1259. #
  1260. # Each pattern is matched against the factory class name to allow or disallow it's
  1261. # instantiation. The access to a factory class is allowed unless the filter returns
  1262. # REJECTED.
  1263. #
  1264. # Note: This property is currently used by the JDK Reference implementation.
  1265. # It is not guaranteed to be examined and used by other implementations.
  1266. #
  1267. # If the system property jdk.jndi.object.factoriesFilter is also specified, it supersedes
  1268. # the security property value defined here. The default value of the property is "*".
  1269. #
  1270. # The default pattern value allows any object factory class specified by the reference
  1271. # instance to recreate the referenced object.
  1272. #jdk.jndi.object.factoriesFilter=*