java.security 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  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 subclass name and priority in the format
  36. #
  37. # security.provider.<n>=<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. # <className> must specify the subclass of the Provider class whose
  46. # constructor sets the values of various properties that are required
  47. # for the Java Security API to look up the algorithms or other
  48. # facilities implemented by the provider.
  49. #
  50. # There must be at least one provider specification in java.security.
  51. # There is a default provider that comes standard with the JDK. It
  52. # is called the "SUN" provider, and its Provider subclass
  53. # named Sun appears in the sun.security.provider package. Thus, the
  54. # "SUN" provider is registered via the following:
  55. #
  56. # security.provider.1=sun.security.provider.Sun
  57. #
  58. # (The number 1 is used for the default provider.)
  59. #
  60. # Note: Providers can be dynamically registered instead by calls to
  61. # either the addProvider or insertProviderAt method in the Security
  62. # class.
  63. #
  64. # List of providers and their preference orders (see above):
  65. #
  66. security.provider.1=sun.security.provider.Sun
  67. security.provider.2=sun.security.rsa.SunRsaSign
  68. security.provider.3=sun.security.ec.SunEC
  69. security.provider.4=com.sun.net.ssl.internal.ssl.Provider
  70. security.provider.5=com.sun.crypto.provider.SunJCE
  71. security.provider.6=sun.security.jgss.SunProvider
  72. security.provider.7=com.sun.security.sasl.Provider
  73. security.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
  74. security.provider.9=sun.security.smartcardio.SunPCSC
  75. #
  76. # Sun Provider SecureRandom seed source.
  77. #
  78. # Select the primary source of seed data for the "SHA1PRNG" and
  79. # "NativePRNG" SecureRandom implementations in the "Sun" provider.
  80. # (Other SecureRandom implementations might also use this property.)
  81. #
  82. # On Unix-like systems (for example, Solaris/Linux/MacOS), the
  83. # "NativePRNG" and "SHA1PRNG" implementations obtains seed data from
  84. # special device files such as file:/dev/random.
  85. #
  86. # On Windows systems, specifying the URLs "file:/dev/random" or
  87. # "file:/dev/urandom" will enable the native Microsoft CryptoAPI seeding
  88. # mechanism for SHA1PRNG.
  89. #
  90. # By default, an attempt is made to use the entropy gathering device
  91. # specified by the "securerandom.source" Security property. If an
  92. # exception occurs while accessing the specified URL:
  93. #
  94. # SHA1PRNG:
  95. # the traditional system/thread activity algorithm will be used.
  96. #
  97. # NativePRNG:
  98. # a default value of /dev/random will be used. If neither
  99. # are available, the implementation will be disabled.
  100. # "file" is the only currently supported protocol type.
  101. #
  102. # The entropy gathering device can also be specified with the System
  103. # property "java.security.egd". For example:
  104. #
  105. # % java -Djava.security.egd=file:/dev/random MainClass
  106. #
  107. # Specifying this System property will override the
  108. # "securerandom.source" Security property.
  109. #
  110. # In addition, if "file:/dev/random" or "file:/dev/urandom" is
  111. # specified, the "NativePRNG" implementation will be more preferred than
  112. # SHA1PRNG in the Sun provider.
  113. #
  114. securerandom.source=file:/dev/random
  115. #
  116. # A list of known strong SecureRandom implementations.
  117. #
  118. # To help guide applications in selecting a suitable strong
  119. # java.security.SecureRandom implementation, Java distributions should
  120. # indicate a list of known strong implementations using the property.
  121. #
  122. # This is a comma-separated list of algorithm and/or algorithm:provider
  123. # entries.
  124. #
  125. securerandom.strongAlgorithms=NativePRNGBlocking:SUN
  126. #
  127. # Class to instantiate as the javax.security.auth.login.Configuration
  128. # provider.
  129. #
  130. login.configuration.provider=sun.security.provider.ConfigFile
  131. #
  132. # Default login configuration file
  133. #
  134. #login.config.url.1=file:${user.home}/.java.login.config
  135. #
  136. # Class to instantiate as the system Policy. This is the name of the class
  137. # that will be used as the Policy object.
  138. #
  139. policy.provider=sun.security.provider.PolicyFile
  140. # The default is to have a single system-wide policy file,
  141. # and a policy file in the user's home directory.
  142. policy.url.1=file:${java.home}/lib/security/java.policy
  143. policy.url.2=file:${user.home}/.java.policy
  144. # whether or not we expand properties in the policy file
  145. # if this is set to false, properties (${...}) will not be expanded in policy
  146. # files.
  147. policy.expandProperties=true
  148. # whether or not we allow an extra policy to be passed on the command line
  149. # with -Djava.security.policy=somefile. Comment out this line to disable
  150. # this feature.
  151. policy.allowSystemProperty=true
  152. # whether or not we look into the IdentityScope for trusted Identities
  153. # when encountering a 1.1 signed JAR file. If the identity is found
  154. # and is trusted, we grant it AllPermission.
  155. policy.ignoreIdentityScope=false
  156. #
  157. # Default keystore type.
  158. #
  159. keystore.type=jks
  160. #
  161. # Controls compatibility mode for the JKS keystore type.
  162. #
  163. # When set to 'true', the JKS keystore type supports loading
  164. # keystore files in either JKS or PKCS12 format. When set to 'false'
  165. # it supports loading only JKS keystore files.
  166. #
  167. keystore.type.compat=true
  168. #
  169. # List of comma-separated packages that start with or equal this string
  170. # will cause a security exception to be thrown when
  171. # passed to checkPackageAccess unless the
  172. # corresponding RuntimePermission ("accessClassInPackage."+package) has
  173. # been granted.
  174. package.access=sun.,\
  175. com.sun.xml.internal.,\
  176. com.sun.imageio.,\
  177. com.sun.istack.internal.,\
  178. com.sun.jmx.,\
  179. com.sun.media.sound.,\
  180. com.sun.naming.internal.,\
  181. com.sun.proxy.,\
  182. com.sun.corba.se.,\
  183. com.sun.org.apache.bcel.internal.,\
  184. com.sun.org.apache.regexp.internal.,\
  185. com.sun.org.apache.xerces.internal.,\
  186. com.sun.org.apache.xpath.internal.,\
  187. com.sun.org.apache.xalan.internal.extensions.,\
  188. com.sun.org.apache.xalan.internal.lib.,\
  189. com.sun.org.apache.xalan.internal.res.,\
  190. com.sun.org.apache.xalan.internal.templates.,\
  191. com.sun.org.apache.xalan.internal.utils.,\
  192. com.sun.org.apache.xalan.internal.xslt.,\
  193. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  194. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  195. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  196. com.sun.org.apache.xalan.internal.xsltc.util.,\
  197. com.sun.org.apache.xml.internal.res.,\
  198. com.sun.org.apache.xml.internal.resolver.helpers.,\
  199. com.sun.org.apache.xml.internal.resolver.readers.,\
  200. com.sun.org.apache.xml.internal.security.,\
  201. com.sun.org.apache.xml.internal.serializer.utils.,\
  202. com.sun.org.apache.xml.internal.utils.,\
  203. com.sun.org.glassfish.,\
  204. com.oracle.xmlns.internal.,\
  205. com.oracle.webservices.internal.,\
  206. oracle.jrockit.jfr.,\
  207. org.jcp.xml.dsig.internal.,\
  208. jdk.internal.,\
  209. jdk.nashorn.internal.,\
  210. jdk.nashorn.tools.,\
  211. jdk.xml.internal.,\
  212. com.sun.activation.registries.,\
  213. com.sun.browser.,\
  214. com.sun.glass.,\
  215. com.sun.javafx.,\
  216. com.sun.media.,\
  217. com.sun.openpisces.,\
  218. com.sun.prism.,\
  219. com.sun.scenario.,\
  220. com.sun.t2k.,\
  221. com.sun.pisces.,\
  222. com.sun.webkit.,\
  223. jdk.management.resource.internal.
  224. #
  225. # List of comma-separated packages that start with or equal this string
  226. # will cause a security exception to be thrown when
  227. # passed to checkPackageDefinition unless the
  228. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  229. # been granted.
  230. #
  231. # by default, none of the class loaders supplied with the JDK call
  232. # checkPackageDefinition.
  233. #
  234. package.definition=sun.,\
  235. com.sun.xml.internal.,\
  236. com.sun.imageio.,\
  237. com.sun.istack.internal.,\
  238. com.sun.jmx.,\
  239. com.sun.media.sound.,\
  240. com.sun.naming.internal.,\
  241. com.sun.proxy.,\
  242. com.sun.corba.se.,\
  243. com.sun.org.apache.bcel.internal.,\
  244. com.sun.org.apache.regexp.internal.,\
  245. com.sun.org.apache.xerces.internal.,\
  246. com.sun.org.apache.xpath.internal.,\
  247. com.sun.org.apache.xalan.internal.extensions.,\
  248. com.sun.org.apache.xalan.internal.lib.,\
  249. com.sun.org.apache.xalan.internal.res.,\
  250. com.sun.org.apache.xalan.internal.templates.,\
  251. com.sun.org.apache.xalan.internal.utils.,\
  252. com.sun.org.apache.xalan.internal.xslt.,\
  253. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  254. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  255. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  256. com.sun.org.apache.xalan.internal.xsltc.util.,\
  257. com.sun.org.apache.xml.internal.res.,\
  258. com.sun.org.apache.xml.internal.resolver.helpers.,\
  259. com.sun.org.apache.xml.internal.resolver.readers.,\
  260. com.sun.org.apache.xml.internal.security.,\
  261. com.sun.org.apache.xml.internal.serializer.utils.,\
  262. com.sun.org.apache.xml.internal.utils.,\
  263. com.sun.org.glassfish.,\
  264. com.oracle.xmlns.internal.,\
  265. com.oracle.webservices.internal.,\
  266. oracle.jrockit.jfr.,\
  267. org.jcp.xml.dsig.internal.,\
  268. jdk.internal.,\
  269. jdk.nashorn.internal.,\
  270. jdk.nashorn.tools.,\
  271. jdk.xml.internal.,\
  272. com.sun.activation.registries.,\
  273. com.sun.browser.,\
  274. com.sun.glass.,\
  275. com.sun.javafx.,\
  276. com.sun.media.,\
  277. com.sun.openpisces.,\
  278. com.sun.prism.,\
  279. com.sun.scenario.,\
  280. com.sun.t2k.,\
  281. com.sun.pisces.,\
  282. com.sun.webkit.,\
  283. jdk.management.resource.internal.
  284. #
  285. # Determines whether this properties file can be appended to
  286. # or overridden on the command line via -Djava.security.properties
  287. #
  288. security.overridePropertiesFile=true
  289. #
  290. # Determines the default key and trust manager factory algorithms for
  291. # the javax.net.ssl package.
  292. #
  293. ssl.KeyManagerFactory.algorithm=SunX509
  294. ssl.TrustManagerFactory.algorithm=PKIX
  295. #
  296. # The Java-level namelookup cache policy for successful lookups:
  297. #
  298. # any negative value: caching forever
  299. # any positive value: the number of seconds to cache an address for
  300. # zero: do not cache
  301. #
  302. # default value is forever (FOREVER). For security reasons, this
  303. # caching is made forever when a security manager is set. When a security
  304. # manager is not set, the default behavior in this implementation
  305. # is to cache for 30 seconds.
  306. #
  307. # NOTE: setting this to anything other than the default value can have
  308. # serious security implications. Do not set it unless
  309. # you are sure you are not exposed to DNS spoofing attack.
  310. #
  311. #networkaddress.cache.ttl=-1
  312. # The Java-level namelookup cache policy for failed lookups:
  313. #
  314. # any negative value: cache forever
  315. # any positive value: the number of seconds to cache negative lookup results
  316. # zero: do not cache
  317. #
  318. # In some Microsoft Windows networking environments that employ
  319. # the WINS name service in addition to DNS, name service lookups
  320. # that fail may take a noticeably long time to return (approx. 5 seconds).
  321. # For this reason the default caching policy is to maintain these
  322. # results for 10 seconds.
  323. #
  324. #
  325. networkaddress.cache.negative.ttl=10
  326. #
  327. # Properties to configure OCSP for certificate revocation checking
  328. #
  329. # Enable OCSP
  330. #
  331. # By default, OCSP is not used for certificate revocation checking.
  332. # This property enables the use of OCSP when set to the value "true".
  333. #
  334. # NOTE: SocketPermission is required to connect to an OCSP responder.
  335. #
  336. # Example,
  337. # ocsp.enable=true
  338. #
  339. # Location of the OCSP responder
  340. #
  341. # By default, the location of the OCSP responder is determined implicitly
  342. # from the certificate being validated. This property explicitly specifies
  343. # the location of the OCSP responder. The property is used when the
  344. # Authority Information Access extension (defined in RFC 3280) is absent
  345. # from the certificate or when it requires overriding.
  346. #
  347. # Example,
  348. # ocsp.responderURL=http://ocsp.example.net:80
  349. #
  350. # Subject name of the OCSP responder's certificate
  351. #
  352. # By default, the certificate of the OCSP responder is that of the issuer
  353. # of the certificate being validated. This property identifies the certificate
  354. # of the OCSP responder when the default does not apply. Its value is a string
  355. # distinguished name (defined in RFC 2253) which identifies a certificate in
  356. # the set of certificates supplied during cert path validation. In cases where
  357. # the subject name alone is not sufficient to uniquely identify the certificate
  358. # then both the "ocsp.responderCertIssuerName" and
  359. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  360. # property is set then those two properties are ignored.
  361. #
  362. # Example,
  363. # ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
  364. #
  365. # Issuer name of the OCSP responder's certificate
  366. #
  367. # By default, the certificate of the OCSP responder is that of the issuer
  368. # of the certificate being validated. This property identifies the certificate
  369. # of the OCSP responder when the default does not apply. Its value is a string
  370. # distinguished name (defined in RFC 2253) which identifies a certificate in
  371. # the set of certificates supplied during cert path validation. When this
  372. # property is set then the "ocsp.responderCertSerialNumber" property must also
  373. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  374. # property is ignored.
  375. #
  376. # Example,
  377. # ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
  378. #
  379. # Serial number of the OCSP responder's certificate
  380. #
  381. # By default, the certificate of the OCSP responder is that of the issuer
  382. # of the certificate being validated. This property identifies the certificate
  383. # of the OCSP responder when the default does not apply. Its value is a string
  384. # of hexadecimal digits (colon or space separators may be present) which
  385. # identifies a certificate in the set of certificates supplied during cert path
  386. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  387. # property must also be set. When the "ocsp.responderCertSubjectName" property
  388. # is set then this property is ignored.
  389. #
  390. # Example,
  391. # ocsp.responderCertSerialNumber=2A:FF:00
  392. #
  393. # Policy for failed Kerberos KDC lookups:
  394. #
  395. # When a KDC is unavailable (network error, service failure, etc), it is
  396. # put inside a blacklist and accessed less often for future requests. The
  397. # value (case-insensitive) for this policy can be:
  398. #
  399. # tryLast
  400. # KDCs in the blacklist are always tried after those not on the list.
  401. #
  402. # tryLess[:max_retries,timeout]
  403. # KDCs in the blacklist are still tried by their order in the configuration,
  404. # but with smaller max_retries and timeout values. max_retries and timeout
  405. # are optional numerical parameters (default 1 and 5000, which means once
  406. # and 5 seconds). Please notes that if any of the values defined here is
  407. # more than what is defined in krb5.conf, it will be ignored.
  408. #
  409. # Whenever a KDC is detected as available, it is removed from the blacklist.
  410. # The blacklist is reset when krb5.conf is reloaded. You can add
  411. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  412. # reloaded whenever a JAAS authentication is attempted.
  413. #
  414. # Example,
  415. # krb5.kdc.bad.policy = tryLast
  416. # krb5.kdc.bad.policy = tryLess:2,2000
  417. krb5.kdc.bad.policy = tryLast
  418. # Algorithm restrictions for certification path (CertPath) processing
  419. #
  420. # In some environments, certain algorithms or key lengths may be undesirable
  421. # for certification path building and validation. For example, "MD2" is
  422. # generally no longer considered to be a secure hash algorithm. This section
  423. # describes the mechanism for disabling algorithms based on algorithm name
  424. # and/or key length. This includes algorithms used in certificates, as well
  425. # as revocation information such as CRLs and signed OCSP Responses.
  426. # The syntax of the disabled algorithm string is described as follows:
  427. # DisabledAlgorithms:
  428. # " DisabledAlgorithm { , DisabledAlgorithm } "
  429. #
  430. # DisabledAlgorithm:
  431. # AlgorithmName [Constraint] { '&' Constraint }
  432. #
  433. # AlgorithmName:
  434. # (see below)
  435. #
  436. # Constraint:
  437. # KeySizeConstraint | CAConstraint | DenyAfterConstraint |
  438. # UsageConstraint
  439. #
  440. # KeySizeConstraint:
  441. # keySize Operator KeyLength
  442. #
  443. # Operator:
  444. # <= | < | == | != | >= | >
  445. #
  446. # KeyLength:
  447. # Integer value of the algorithm's key length in bits
  448. #
  449. # CAConstraint:
  450. # jdkCA
  451. #
  452. # DenyAfterConstraint:
  453. # denyAfter YYYY-MM-DD
  454. #
  455. # UsageConstraint:
  456. # usage [TLSServer] [TLSClient] [SignedJAR]
  457. #
  458. # The "AlgorithmName" is the standard algorithm name of the disabled
  459. # algorithm. See "Java Cryptography Architecture Standard Algorithm Name
  460. # Documentation" for information about Standard Algorithm Names. Matching
  461. # is performed using a case-insensitive sub-element matching rule. (For
  462. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  463. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  464. # sub-element of the certificate algorithm name, the algorithm will be
  465. # rejected during certification path building and validation. For example,
  466. # the assertion algorithm name "DSA" will disable all certificate algorithms
  467. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  468. # will not disable algorithms related to "ECDSA".
  469. #
  470. # A "Constraint" defines restrictions on the keys and/or certificates for
  471. # a specified AlgorithmName:
  472. #
  473. # KeySizeConstraint:
  474. # keySize Operator KeyLength
  475. # The constraint requires a key of a valid size range if the
  476. # "AlgorithmName" is of a key algorithm. The "KeyLength" indicates
  477. # the key size specified in number of bits. For example,
  478. # "RSA keySize <= 1024" indicates that any RSA key with key size less
  479. # than or equal to 1024 bits should be disabled, and
  480. # "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key
  481. # with key size less than 1024 or greater than 2048 should be disabled.
  482. # This constraint is only used on algorithms that have a key size.
  483. #
  484. # CAConstraint:
  485. # jdkCA
  486. # This constraint prohibits the specified algorithm only if the
  487. # algorithm is used in a certificate chain that terminates at a marked
  488. # trust anchor in the lib/security/cacerts keystore. If the jdkCA
  489. # constraint is not set, then all chains using the specified algorithm
  490. # are restricted. jdkCA may only be used once in a DisabledAlgorithm
  491. # expression.
  492. # Example: To apply this constraint to SHA-1 certificates, include
  493. # the following: "SHA1 jdkCA"
  494. #
  495. # DenyAfterConstraint:
  496. # denyAfter YYYY-MM-DD
  497. # This constraint prohibits a certificate with the specified algorithm
  498. # from being used after the date regardless of the certificate's
  499. # validity. JAR files that are signed and timestamped before the
  500. # constraint date with certificates containing the disabled algorithm
  501. # will not be restricted. The date is processed in the UTC timezone.
  502. # This constraint can only be used once in a DisabledAlgorithm
  503. # expression.
  504. # Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020,
  505. # use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"
  506. #
  507. # UsageConstraint:
  508. # usage [TLSServer] [TLSClient] [SignedJAR]
  509. # This constraint prohibits the specified algorithm for
  510. # a specified usage. This should be used when disabling an algorithm
  511. # for all usages is not practical. 'TLSServer' restricts the algorithm
  512. # in TLS server certificate chains when server authentication is
  513. # performed. 'TLSClient' restricts the algorithm in TLS client
  514. # certificate chains when client authentication is performed.
  515. # 'SignedJAR' constrains use of certificates in signed jar files.
  516. # The usage type follows the keyword and more than one usage type can
  517. # be specified with a whitespace delimiter.
  518. # Example: "SHA1 usage TLSServer TLSClient"
  519. #
  520. # When an algorithm must satisfy more than one constraint, it must be
  521. # delimited by an ampersand '&'. For example, to restrict certificates in a
  522. # chain that terminate at a distribution provided trust anchor and contain
  523. # RSA keys that are less than or equal to 1024 bits, add the following
  524. # constraint: "RSA keySize <= 1024 & jdkCA".
  525. #
  526. # All DisabledAlgorithms expressions are processed in the order defined in the
  527. # property. This requires lower keysize constraints to be specified
  528. # before larger keysize constraints of the same algorithm. For example:
  529. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  530. #
  531. # Note: The algorithm restrictions do not apply to trust anchors or
  532. # self-signed certificates.
  533. #
  534. # Note: This property is currently used by Oracle's PKIX implementation. It
  535. # is not guaranteed to be examined and used by other implementations.
  536. #
  537. # Example:
  538. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  539. #
  540. #
  541. jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
  542. RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
  543. #
  544. # Algorithm restrictions for signed JAR files
  545. #
  546. # In some environments, certain algorithms or key lengths may be undesirable
  547. # for signed JAR validation. For example, "MD2" is generally no longer
  548. # considered to be a secure hash algorithm. This section describes the
  549. # mechanism for disabling algorithms based on algorithm name and/or key length.
  550. # JARs signed with any of the disabled algorithms or key sizes will be treated
  551. # as unsigned.
  552. #
  553. # The syntax of the disabled algorithm string is described as follows:
  554. # DisabledAlgorithms:
  555. # " DisabledAlgorithm { , DisabledAlgorithm } "
  556. #
  557. # DisabledAlgorithm:
  558. # AlgorithmName [Constraint] { '&' Constraint }
  559. #
  560. # AlgorithmName:
  561. # (see below)
  562. #
  563. # Constraint:
  564. # KeySizeConstraint | DenyAfterConstraint
  565. #
  566. # KeySizeConstraint:
  567. # keySize Operator KeyLength
  568. #
  569. # DenyAfterConstraint:
  570. # denyAfter YYYY-MM-DD
  571. #
  572. # Operator:
  573. # <= | < | == | != | >= | >
  574. #
  575. # KeyLength:
  576. # Integer value of the algorithm's key length in bits
  577. #
  578. # Note: This property is currently used by the JDK Reference
  579. # implementation. It is not guaranteed to be examined and used by other
  580. # implementations.
  581. #
  582. # See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
  583. #
  584. jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, DSA keySize < 1024
  585. #
  586. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  587. # (SSL/TLS) processing
  588. #
  589. # In some environments, certain algorithms or key lengths may be undesirable
  590. # when using SSL/TLS. This section describes the mechanism for disabling
  591. # algorithms during SSL/TLS security parameters negotiation, including
  592. # protocol version negotiation, cipher suites selection, peer authentication
  593. # and key exchange mechanisms.
  594. #
  595. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  596. # if they are enabled explicitly in an application.
  597. #
  598. # For PKI-based peer authentication and key exchange mechanisms, this list
  599. # of disabled algorithms will also be checked during certification path
  600. # building and validation, including algorithms used in certificates, as
  601. # well as revocation information such as CRLs and signed OCSP Responses.
  602. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  603. #
  604. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  605. # syntax of the disabled algorithm string.
  606. #
  607. # Note: The algorithm restrictions do not apply to trust anchors or
  608. # self-signed certificates.
  609. #
  610. # Note: This property is currently used by the JDK Reference implementation.
  611. # It is not guaranteed to be examined and used by other implementations.
  612. #
  613. # Example:
  614. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
  615. jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, DH keySize < 1024, \
  616. EC keySize < 224, 3DES_EDE_CBC
  617. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  618. # processing in JSSE implementation.
  619. #
  620. # In some environments, a certain algorithm may be undesirable but it
  621. # cannot be disabled because of its use in legacy applications. Legacy
  622. # algorithms may still be supported, but applications should not use them
  623. # as the security strength of legacy algorithms are usually not strong enough
  624. # in practice.
  625. #
  626. # During SSL/TLS security parameters negotiation, legacy algorithms will
  627. # not be negotiated unless there are no other candidates.
  628. #
  629. # The syntax of the legacy algorithms string is described as this Java
  630. # BNF-style:
  631. # LegacyAlgorithms:
  632. # " LegacyAlgorithm { , LegacyAlgorithm } "
  633. #
  634. # LegacyAlgorithm:
  635. # AlgorithmName (standard JSSE algorithm name)
  636. #
  637. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  638. # for the syntax and description of the "AlgorithmName" notation.
  639. #
  640. # Per SSL/TLS specifications, cipher suites have the form:
  641. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  642. # or
  643. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  644. #
  645. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  646. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  647. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  648. # algorithm for HMAC.
  649. #
  650. # The LegacyAlgorithm can be one of the following standard algorithm names:
  651. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  652. # 2. JSSE key exchange algorithm name, e.g., RSA
  653. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  654. # 4. JSSE message digest algorithm name, e.g., SHA
  655. #
  656. # See SSL/TLS specifications and "Java Cryptography Architecture Standard
  657. # Algorithm Name Documentation" for information about the algorithm names.
  658. #
  659. # Note: This property is currently used by the JDK Reference implementation.
  660. # It is not guaranteed to be examined and used by other implementations.
  661. # There is no guarantee the property will continue to exist or be of the
  662. # same syntax in future releases.
  663. #
  664. # Example:
  665. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  666. #
  667. jdk.tls.legacyAlgorithms= \
  668. K_NULL, C_NULL, M_NULL, \
  669. DH_anon, ECDH_anon, \
  670. RC4_128, RC4_40, DES_CBC, DES40_CBC, \
  671. 3DES_EDE_CBC
  672. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  673. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  674. #
  675. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  676. # negotiation mechanism is not used, the server offers the client group
  677. # parameters, base generator g and prime modulus p, for DHE key exchange.
  678. # It is recommended to use dynamic group parameters. This property defines
  679. # a mechanism that allows you to specify custom group parameters.
  680. #
  681. # The syntax of this property string is described as this Java BNF-style:
  682. # DefaultDHEParameters:
  683. # DefinedDHEParameters { , DefinedDHEParameters }
  684. #
  685. # DefinedDHEParameters:
  686. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  687. #
  688. # DHEPrimeModulus:
  689. # HexadecimalDigits
  690. #
  691. # DHEBaseGenerator:
  692. # HexadecimalDigits
  693. #
  694. # HexadecimalDigits:
  695. # HexadecimalDigit { HexadecimalDigit }
  696. #
  697. # HexadecimalDigit: one of
  698. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  699. #
  700. # Whitespace characters are ignored.
  701. #
  702. # The "DefinedDHEParameters" defines the custom group parameters, prime
  703. # modulus p and base generator g, for a particular size of prime modulus p.
  704. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  705. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  706. # parameter. It is recommended to use safe primes for the custom group
  707. # parameters.
  708. #
  709. # If this property is not defined or the value is empty, the underlying JSSE
  710. # provider's default group parameter is used for each connection.
  711. #
  712. # If the property value does not follow the grammar, or a particular group
  713. # parameter is not valid, the connection will fall back and use the
  714. # underlying JSSE provider's default group parameter.
  715. #
  716. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  717. # is not guaranteed to be examined and used by other implementations.
  718. #
  719. # Example:
  720. # jdk.tls.server.defaultDHEParameters=
  721. # { \
  722. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  723. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  724. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  725. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  726. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  727. # FFFFFFFF FFFFFFFF, 2}
  728. # Cryptographic Jurisdiction Policy defaults
  729. #
  730. # Import and export control rules on cryptographic software vary from
  731. # country to country. By default, the JDK provides two different sets of
  732. # cryptographic policy files:
  733. #
  734. # unlimited: These policy files contain no restrictions on cryptographic
  735. # strengths or algorithms.
  736. #
  737. # limited: These policy files contain more restricted cryptographic
  738. # strengths, and are still available if your country or
  739. # usage requires the traditional restrictive policy.
  740. #
  741. # The JDK JCE framework uses the unlimited policy files by default.
  742. # However the user may explicitly choose a set either by defining the
  743. # "crypto.policy" Security property or by installing valid JCE policy
  744. # jar files into the traditional JDK installation location. To better
  745. # support older JDK Update releases, the "crypto.policy" property is not
  746. # defined by default. See below for more information.
  747. #
  748. # The following logic determines which policy files are used:
  749. #
  750. # <java-home> refers to the directory where the JRE was
  751. # installed and may be determined using the "java.home"
  752. # System property.
  753. #
  754. # 1. If the Security property "crypto.policy" has been defined,
  755. # then the following mechanism is used:
  756. #
  757. # The policy files are stored as jar files in subdirectories of
  758. # <java-home>/lib/security/policy. Each directory contains a complete
  759. # set of policy files.
  760. #
  761. # The "crypto.policy" Security property controls the directory
  762. # selection, and thus the effective cryptographic policy.
  763. #
  764. # The default set of directories is:
  765. #
  766. # limited | unlimited
  767. #
  768. # 2. If the "crypto.policy" property is not set and the traditional
  769. # US_export_policy.jar and local_policy.jar files
  770. # (e.g. limited/unlimited) are found in the legacy
  771. # <java-home>/lib/security directory, then the rules embedded within
  772. # those jar files will be used. This helps preserve compatibility
  773. # for users upgrading from an older installation.
  774. #
  775. # 3. If the jar files are not present in the legacy location
  776. # and the "crypto.policy" Security property is not defined,
  777. # then the JDK will use the unlimited settings (equivalent to
  778. # crypto.policy=unlimited)
  779. #
  780. # Please see the JCA documentation for additional information on these
  781. # files and formats.
  782. #
  783. # YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY
  784. # TO DETERMINE THE EXACT REQUIREMENTS.
  785. #
  786. # Please note that the JCE for Java SE, including the JCE framework,
  787. # cryptographic policy files, and standard JCE providers provided with
  788. # the Java SE, have been reviewed and approved for export as mass market
  789. # encryption item by the US Bureau of Industry and Security.
  790. #
  791. # Note: This property is currently used by the JDK Reference implementation.
  792. # It is not guaranteed to be examined and used by other implementations.
  793. #
  794. #crypto.policy=unlimited
  795. #
  796. # The policy for the XML Signature secure validation mode. The mode is
  797. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  798. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  799. # or by running the code with a SecurityManager.
  800. #
  801. # Policy:
  802. # Constraint {"," Constraint }
  803. # Constraint:
  804. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  805. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  806. # AlgConstraint
  807. # "disallowAlg" Uri
  808. # MaxTransformsConstraint:
  809. # "maxTransforms" Integer
  810. # MaxReferencesConstraint:
  811. # "maxReferences" Integer
  812. # ReferenceUriSchemeConstraint:
  813. # "disallowReferenceUriSchemes" String { String }
  814. # KeySizeConstraint:
  815. # "minKeySize" KeyAlg Integer
  816. # OtherConstraint:
  817. # "noDuplicateIds" | "noRetrievalMethodLoops"
  818. #
  819. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  820. # See the XML Signature Recommendation for more information on algorithm
  821. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  822. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  823. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  824. # specified more than once, only the last entry is enforced.
  825. #
  826. # Note: This property is currently used by the JDK Reference implementation. It
  827. # is not guaranteed to be examined and used by other implementations.
  828. #
  829. jdk.xml.dsig.secureValidationPolicy=\
  830. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  831. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  832. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  833. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  834. maxTransforms 5,\
  835. maxReferences 30,\
  836. disallowReferenceUriSchemes file http https,\
  837. minKeySize RSA 1024,\
  838. minKeySize DSA 1024,\
  839. minKeySize EC 224,\
  840. noDuplicateIds,\
  841. noRetrievalMethodLoops
  842. #
  843. # Serialization process-wide filter
  844. #
  845. # A filter, if configured, is used by java.io.ObjectInputStream during
  846. # deserialization to check the contents of the stream.
  847. # A filter is configured as a sequence of patterns, each pattern is either
  848. # matched against the name of a class in the stream or defines a limit.
  849. # Patterns are separated by ";" (semicolon).
  850. # Whitespace is significant and is considered part of the pattern.
  851. #
  852. # If the system property jdk.serialFilter is also specified, it supersedes
  853. # the security property value defined here.
  854. #
  855. # If a pattern includes a "=", it sets a limit.
  856. # If a limit appears more than once the last value is used.
  857. # Limits are checked before classes regardless of the order in the sequence of patterns.
  858. # If any of the limits are exceeded, the filter status is REJECTED.
  859. #
  860. # maxdepth=value - the maximum depth of a graph
  861. # maxrefs=value - the maximum number of internal references
  862. # maxbytes=value - the maximum number of bytes in the input stream
  863. # maxarray=value - the maximum array length allowed
  864. #
  865. # Other patterns, from left to right, match the class or package name as
  866. # returned from Class.getName.
  867. # If the class is an array type, the class or package to be matched is the element type.
  868. # Arrays of any number of dimensions are treated the same as the element type.
  869. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  870. # array of example.Foo.
  871. #
  872. # If the pattern starts with "!", the status is REJECTED if the remaining pattern
  873. # is matched; otherwise the status is ALLOWED if the pattern matches.
  874. # If the pattern ends with ".**" it matches any class in the package and all subpackages.
  875. # If the pattern ends with ".*" it matches any class in the package.
  876. # If the pattern ends with "*", it matches any class with the pattern as a prefix.
  877. # If the pattern is equal to the class name, it matches.
  878. # Otherwise, the status is UNDECIDED.
  879. #
  880. # Primitive types are not configurable with this filter.
  881. #
  882. #jdk.serialFilter=pattern;pattern
  883. #
  884. # RMI Registry Serial Filter
  885. #
  886. # The filter pattern uses the same format as jdk.serialFilter.
  887. # This filter can override the builtin filter if additional types need to be
  888. # allowed or rejected from the RMI Registry or to decrease limits but not
  889. # to increase limits.
  890. # If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected.
  891. #
  892. # The maxdepth of any array passed to the RMI Registry is set to
  893. # 10000. The maximum depth of the graph is set to 20.
  894. # These limits can be reduced via the maxarray, maxdepth limits.
  895. #
  896. #sun.rmi.registry.registryFilter=pattern;pattern
  897. #
  898. # Array construction of any component type, including subarrays and arrays of
  899. # primitives, are allowed unless the length is greater than the maxarray limit.
  900. # The filter is applied to each array element.
  901. #
  902. # The built-in filter allows subclasses of allowed classes and
  903. # can approximately be represented as the pattern:
  904. #
  905. #sun.rmi.registry.registryFilter=\
  906. # maxarray=1000000;\
  907. # maxdepth=20;\
  908. # java.lang.String;\
  909. # java.lang.Number;\
  910. # java.lang.reflect.Proxy;\
  911. # java.rmi.Remote;\
  912. # sun.rmi.server.UnicastRef;\
  913. # sun.rmi.server.RMIClientSocketFactory;\
  914. # sun.rmi.server.RMIServerSocketFactory;\
  915. # java.rmi.activation.ActivationID;\
  916. # java.rmi.server.UID
  917. #
  918. # RMI Distributed Garbage Collector (DGC) Serial Filter
  919. #
  920. # The filter pattern uses the same format as jdk.serialFilter.
  921. # This filter can override the builtin filter if additional types need to be
  922. # allowed or rejected from the RMI DGC.
  923. #
  924. # The builtin DGC filter can approximately be represented as the filter pattern:
  925. #
  926. #sun.rmi.transport.dgcFilter=\
  927. # java.rmi.server.ObjID;\
  928. # java.rmi.server.UID;\
  929. # java.rmi.dgc.VMID;\
  930. # java.rmi.dgc.Lease;\
  931. # maxdepth=5;maxarray=10000
  932. # CORBA ORBIorTypeCheckRegistryFilter
  933. # Type check enhancement for ORB::string_to_object processing
  934. #
  935. # An IOR type check filter, if configured, is used by an ORB during
  936. # an ORB::string_to_object invocation to check the veracity of the type encoded
  937. # in the ior string.
  938. #
  939. # The filter pattern consists of a semi-colon separated list of class names.
  940. # The configured list contains the binary class names of the IDL interface types
  941. # corresponding to the IDL stub class to be instantiated.
  942. # As such, a filter specifies a list of IDL stub classes that will be
  943. # allowed by an ORB when an ORB::string_to_object is invoked.
  944. # It is used to specify a white list configuration of acceptable
  945. # IDL stub types which may be contained in a stringified IOR
  946. # parameter passed as input to an ORB::string_to_object method.
  947. #
  948. # Note: This property is currently used by the JDK Reference implementation.
  949. # It is not guaranteed to be examined and used by other implementations.
  950. #
  951. #com.sun.CORBA.ORBIorTypeCheckRegistryFilter=binary_class_name;binary_class_name
  952. #
  953. # JCEKS Encrypted Key Serial Filter
  954. #
  955. # This filter, if configured, is used by the JCEKS KeyStore during the
  956. # deserialization of the encrypted Key object stored inside a key entry.
  957. # If not configured or the filter result is UNDECIDED (i.e. none of the patterns
  958. # matches), the filter configured by jdk.serialFilter will be consulted.
  959. #
  960. # If the system property jceks.key.serialFilter is also specified, it supersedes
  961. # the security property value defined here.
  962. #
  963. # The filter pattern uses the same format as jdk.serialFilter. The default
  964. # pattern allows java.lang.Enum, java.security.KeyRep, java.security.KeyRep$Type,
  965. # and javax.crypto.spec.SecretKeySpec and rejects all the others.
  966. jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
  967. java.security.KeyRep$Type;javax.crypto.spec.SecretKeySpec;!*