java.security 43 KB

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