java.security 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304
  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. jdk.jfr.events.,\
  214. jdk.jfr.internal.,\
  215. jdk.management.jfr.internal.
  216. #
  217. # List of comma-separated packages that start with or equal this string
  218. # will cause a security exception to be thrown when
  219. # passed to checkPackageDefinition unless the
  220. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  221. # been granted.
  222. #
  223. # by default, none of the class loaders supplied with the JDK call
  224. # checkPackageDefinition.
  225. #
  226. package.definition=sun.,\
  227. com.sun.xml.internal.,\
  228. com.sun.imageio.,\
  229. com.sun.istack.internal.,\
  230. com.sun.jmx.,\
  231. com.sun.media.sound.,\
  232. com.sun.naming.internal.,\
  233. com.sun.proxy.,\
  234. com.sun.corba.se.,\
  235. com.sun.org.apache.bcel.internal.,\
  236. com.sun.org.apache.regexp.internal.,\
  237. com.sun.org.apache.xerces.internal.,\
  238. com.sun.org.apache.xpath.internal.,\
  239. com.sun.org.apache.xalan.internal.extensions.,\
  240. com.sun.org.apache.xalan.internal.lib.,\
  241. com.sun.org.apache.xalan.internal.res.,\
  242. com.sun.org.apache.xalan.internal.templates.,\
  243. com.sun.org.apache.xalan.internal.utils.,\
  244. com.sun.org.apache.xalan.internal.xslt.,\
  245. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  246. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  247. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  248. com.sun.org.apache.xalan.internal.xsltc.util.,\
  249. com.sun.org.apache.xml.internal.res.,\
  250. com.sun.org.apache.xml.internal.resolver.helpers.,\
  251. com.sun.org.apache.xml.internal.resolver.readers.,\
  252. com.sun.org.apache.xml.internal.security.,\
  253. com.sun.org.apache.xml.internal.serializer.utils.,\
  254. com.sun.org.apache.xml.internal.utils.,\
  255. com.sun.org.glassfish.,\
  256. com.oracle.xmlns.internal.,\
  257. com.oracle.webservices.internal.,\
  258. oracle.jrockit.jfr.,\
  259. org.jcp.xml.dsig.internal.,\
  260. jdk.internal.,\
  261. jdk.nashorn.internal.,\
  262. jdk.nashorn.tools.,\
  263. jdk.xml.internal.,\
  264. com.sun.activation.registries.,\
  265. jdk.jfr.events.,\
  266. jdk.jfr.internal.,\
  267. jdk.management.jfr.internal.
  268. #
  269. # Determines whether this properties file can be appended to
  270. # or overridden on the command line via -Djava.security.properties
  271. #
  272. security.overridePropertiesFile=true
  273. #
  274. # Determines the default key and trust manager factory algorithms for
  275. # the javax.net.ssl package.
  276. #
  277. ssl.KeyManagerFactory.algorithm=SunX509
  278. ssl.TrustManagerFactory.algorithm=PKIX
  279. #
  280. # The Java-level namelookup cache policy for successful lookups:
  281. #
  282. # any negative value: caching forever
  283. # any positive value: the number of seconds to cache an address for
  284. # zero: do not cache
  285. #
  286. # default value is forever (FOREVER). For security reasons, this
  287. # caching is made forever when a security manager is set. When a security
  288. # manager is not set, the default behavior in this implementation
  289. # is to cache for 30 seconds.
  290. #
  291. # NOTE: setting this to anything other than the default value can have
  292. # serious security implications. Do not set it unless
  293. # you are sure you are not exposed to DNS spoofing attack.
  294. #
  295. #networkaddress.cache.ttl=-1
  296. # The Java-level namelookup cache policy for failed lookups:
  297. #
  298. # any negative value: cache forever
  299. # any positive value: the number of seconds to cache negative lookup results
  300. # zero: do not cache
  301. #
  302. # In some Microsoft Windows networking environments that employ
  303. # the WINS name service in addition to DNS, name service lookups
  304. # that fail may take a noticeably long time to return (approx. 5 seconds).
  305. # For this reason the default caching policy is to maintain these
  306. # results for 10 seconds.
  307. #
  308. #
  309. networkaddress.cache.negative.ttl=10
  310. #
  311. # Properties to configure OCSP for certificate revocation checking
  312. #
  313. # Enable OCSP
  314. #
  315. # By default, OCSP is not used for certificate revocation checking.
  316. # This property enables the use of OCSP when set to the value "true".
  317. #
  318. # NOTE: SocketPermission is required to connect to an OCSP responder.
  319. #
  320. # Example,
  321. # ocsp.enable=true
  322. #
  323. # Location of the OCSP responder
  324. #
  325. # By default, the location of the OCSP responder is determined implicitly
  326. # from the certificate being validated. This property explicitly specifies
  327. # the location of the OCSP responder. The property is used when the
  328. # Authority Information Access extension (defined in RFC 5280) is absent
  329. # from the certificate or when it requires overriding.
  330. #
  331. # Example,
  332. # ocsp.responderURL=http://ocsp.example.net:80
  333. #
  334. # Subject name of the OCSP responder's certificate
  335. #
  336. # By default, the certificate of the OCSP responder is that of the issuer
  337. # of the certificate being validated. This property identifies the certificate
  338. # of the OCSP responder when the default does not apply. Its value is a string
  339. # distinguished name (defined in RFC 2253) which identifies a certificate in
  340. # the set of certificates supplied during cert path validation. In cases where
  341. # the subject name alone is not sufficient to uniquely identify the certificate
  342. # then both the "ocsp.responderCertIssuerName" and
  343. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  344. # property is set then those two properties are ignored.
  345. #
  346. # Example,
  347. # ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
  348. #
  349. # Issuer name of the OCSP responder's certificate
  350. #
  351. # By default, the certificate of the OCSP responder is that of the issuer
  352. # of the certificate being validated. This property identifies the certificate
  353. # of the OCSP responder when the default does not apply. Its value is a string
  354. # distinguished name (defined in RFC 2253) which identifies a certificate in
  355. # the set of certificates supplied during cert path validation. When this
  356. # property is set then the "ocsp.responderCertSerialNumber" property must also
  357. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  358. # property is ignored.
  359. #
  360. # Example,
  361. # ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
  362. #
  363. # Serial number of the OCSP responder's certificate
  364. #
  365. # By default, the certificate of the OCSP responder is that of the issuer
  366. # of the certificate being validated. This property identifies the certificate
  367. # of the OCSP responder when the default does not apply. Its value is a string
  368. # of hexadecimal digits (colon or space separators may be present) which
  369. # identifies a certificate in the set of certificates supplied during cert path
  370. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  371. # property must also be set. When the "ocsp.responderCertSubjectName" property
  372. # is set then this property is ignored.
  373. #
  374. # Example,
  375. # ocsp.responderCertSerialNumber=2A:FF:00
  376. #
  377. # Policy for failed Kerberos KDC lookups:
  378. #
  379. # When a KDC is unavailable (network error, service failure, etc), it is
  380. # put inside a blacklist and accessed less often for future requests. The
  381. # value (case-insensitive) for this policy can be:
  382. #
  383. # tryLast
  384. # KDCs in the blacklist are always tried after those not on the list.
  385. #
  386. # tryLess[:max_retries,timeout]
  387. # KDCs in the blacklist are still tried by their order in the configuration,
  388. # but with smaller max_retries and timeout values. max_retries and timeout
  389. # are optional numerical parameters (default 1 and 5000, which means once
  390. # and 5 seconds). Please notes that if any of the values defined here is
  391. # more than what is defined in krb5.conf, it will be ignored.
  392. #
  393. # Whenever a KDC is detected as available, it is removed from the blacklist.
  394. # The blacklist is reset when krb5.conf is reloaded. You can add
  395. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  396. # reloaded whenever a JAAS authentication is attempted.
  397. #
  398. # Example,
  399. # krb5.kdc.bad.policy = tryLast
  400. # krb5.kdc.bad.policy = tryLess:2,2000
  401. krb5.kdc.bad.policy = tryLast
  402. #
  403. # Kerberos cross-realm referrals (RFC 6806)
  404. #
  405. # OpenJDK's Kerberos client supports cross-realm referrals as defined in
  406. # RFC 6806. This allows to setup more dynamic environments in which clients
  407. # do not need to know in advance how to reach the realm of a target principal
  408. # (either a user or service).
  409. #
  410. # When a client issues an AS or a TGS request, the "canonicalize" option
  411. # is set to announce support of this feature. A KDC server may fulfill the
  412. # request or reply referring the client to a different one. If referred,
  413. # the client will issue a new request and the cycle repeats.
  414. #
  415. # In addition to referrals, the "canonicalize" option allows the KDC server
  416. # to change the client name in response to an AS request. For security reasons,
  417. # RFC 6806 (section 11) FAST scheme is enforced.
  418. #
  419. # Disable Kerberos cross-realm referrals. Value may be overwritten with a
  420. # System property (-Dsun.security.krb5.disableReferrals).
  421. sun.security.krb5.disableReferrals=false
  422. # Maximum number of AS or TGS referrals to avoid infinite loops. Value may
  423. # be overwritten with a System property (-Dsun.security.krb5.maxReferrals).
  424. sun.security.krb5.maxReferrals=5
  425. #
  426. # This property contains a list of disabled EC Named Curves that can be included
  427. # in the jdk.[tls|certpath|jar].disabledAlgorithms properties. To include this
  428. # list in any of the disabledAlgorithms properties, add the property name as
  429. # an entry.
  430. jdk.disabled.namedCurves = secp112r1, secp112r2, secp128r1, secp128r2, \
  431. secp160k1, secp160r1, secp160r2, secp192k1, secp192r1, secp224k1, \
  432. secp224r1, secp256k1, sect113r1, sect113r2, sect131r1, sect131r2, \
  433. sect163k1, sect163r1, sect163r2, sect193r1, sect193r2, sect233k1, \
  434. sect233r1, sect239k1, sect283k1, sect283r1, sect409k1, sect409r1, \
  435. sect571k1, sect571r1, X9.62 c2tnb191v1, X9.62 c2tnb191v2, \
  436. X9.62 c2tnb191v3, X9.62 c2tnb239v1, X9.62 c2tnb239v2, X9.62 c2tnb239v3, \
  437. X9.62 c2tnb359v1, X9.62 c2tnb431r1, X9.62 prime192v2, X9.62 prime192v3, \
  438. X9.62 prime239v1, X9.62 prime239v2, X9.62 prime239v3, brainpoolP256r1, \
  439. brainpoolP320r1, brainpoolP384r1, brainpoolP512r1
  440. #
  441. # Algorithm restrictions for certification path (CertPath) processing
  442. #
  443. # In some environments, certain algorithms or key lengths may be undesirable
  444. # for certification path building and validation. For example, "MD2" is
  445. # generally no longer considered to be a secure hash algorithm. This section
  446. # describes the mechanism for disabling algorithms based on algorithm name
  447. # and/or key length. This includes algorithms used in certificates, as well
  448. # as revocation information such as CRLs and signed OCSP Responses.
  449. # The syntax of the disabled algorithm string is described as follows:
  450. # DisabledAlgorithms:
  451. # " DisabledAlgorithm { , DisabledAlgorithm } "
  452. #
  453. # DisabledAlgorithm:
  454. # AlgorithmName [Constraint] { '&' Constraint } | IncludeProperty
  455. #
  456. # AlgorithmName:
  457. # (see below)
  458. #
  459. # Constraint:
  460. # KeySizeConstraint | CAConstraint | DenyAfterConstraint |
  461. # UsageConstraint
  462. #
  463. # KeySizeConstraint:
  464. # keySize Operator KeyLength
  465. #
  466. # Operator:
  467. # <= | < | == | != | >= | >
  468. #
  469. # KeyLength:
  470. # Integer value of the algorithm's key length in bits
  471. #
  472. # CAConstraint:
  473. # jdkCA
  474. #
  475. # DenyAfterConstraint:
  476. # denyAfter YYYY-MM-DD
  477. #
  478. # UsageConstraint:
  479. # usage [TLSServer] [TLSClient] [SignedJAR]
  480. #
  481. # IncludeProperty:
  482. # include <security property>
  483. #
  484. # The "AlgorithmName" is the standard algorithm name of the disabled
  485. # algorithm. See "Java Cryptography Architecture Standard Algorithm Name
  486. # Documentation" for information about Standard Algorithm Names. Matching
  487. # is performed using a case-insensitive sub-element matching rule. (For
  488. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  489. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  490. # sub-element of the certificate algorithm name, the algorithm will be
  491. # rejected during certification path building and validation. For example,
  492. # the assertion algorithm name "DSA" will disable all certificate algorithms
  493. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  494. # will not disable algorithms related to "ECDSA".
  495. #
  496. # The "IncludeProperty" allows a implementation-defined security property that
  497. # can be included in the disabledAlgorithms properties. These properties are
  498. # to help manage common actions easier across multiple disabledAlgorithm
  499. # properties.
  500. # There is one defined security property: jdk.disabled.namedCurves
  501. # See the property for more specific details.
  502. #
  503. #
  504. # A "Constraint" defines restrictions on the keys and/or certificates for
  505. # a specified AlgorithmName:
  506. #
  507. # KeySizeConstraint:
  508. # keySize Operator KeyLength
  509. # The constraint requires a key of a valid size range if the
  510. # "AlgorithmName" is of a key algorithm. The "KeyLength" indicates
  511. # the key size specified in number of bits. For example,
  512. # "RSA keySize <= 1024" indicates that any RSA key with key size less
  513. # than or equal to 1024 bits should be disabled, and
  514. # "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key
  515. # with key size less than 1024 or greater than 2048 should be disabled.
  516. # This constraint is only used on algorithms that have a key size.
  517. #
  518. # CAConstraint:
  519. # jdkCA
  520. # This constraint prohibits the specified algorithm only if the
  521. # algorithm is used in a certificate chain that terminates at a marked
  522. # trust anchor in the lib/security/cacerts keystore. If the jdkCA
  523. # constraint is not set, then all chains using the specified algorithm
  524. # are restricted. jdkCA may only be used once in a DisabledAlgorithm
  525. # expression.
  526. # Example: To apply this constraint to SHA-1 certificates, include
  527. # the following: "SHA1 jdkCA"
  528. #
  529. # DenyAfterConstraint:
  530. # denyAfter YYYY-MM-DD
  531. # This constraint prohibits a certificate with the specified algorithm
  532. # from being used after the date regardless of the certificate's
  533. # validity. JAR files that are signed and timestamped before the
  534. # constraint date with certificates containing the disabled algorithm
  535. # will not be restricted. The date is processed in the UTC timezone.
  536. # This constraint can only be used once in a DisabledAlgorithm
  537. # expression.
  538. # Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020,
  539. # use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"
  540. #
  541. # UsageConstraint:
  542. # usage [TLSServer] [TLSClient] [SignedJAR]
  543. # This constraint prohibits the specified algorithm for
  544. # a specified usage. This should be used when disabling an algorithm
  545. # for all usages is not practical. 'TLSServer' restricts the algorithm
  546. # in TLS server certificate chains when server authentication is
  547. # performed. 'TLSClient' restricts the algorithm in TLS client
  548. # certificate chains when client authentication is performed.
  549. # 'SignedJAR' constrains use of certificates in signed jar files.
  550. # The usage type follows the keyword and more than one usage type can
  551. # be specified with a whitespace delimiter.
  552. # Example: "SHA1 usage TLSServer TLSClient"
  553. #
  554. # When an algorithm must satisfy more than one constraint, it must be
  555. # delimited by an ampersand '&'. For example, to restrict certificates in a
  556. # chain that terminate at a distribution provided trust anchor and contain
  557. # RSA keys that are less than or equal to 1024 bits, add the following
  558. # constraint: "RSA keySize <= 1024 & jdkCA".
  559. #
  560. # All DisabledAlgorithms expressions are processed in the order defined in the
  561. # property. This requires lower keysize constraints to be specified
  562. # before larger keysize constraints of the same algorithm. For example:
  563. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  564. #
  565. # Note: The algorithm restrictions do not apply to trust anchors or
  566. # self-signed certificates.
  567. #
  568. # Note: This property is currently used by Oracle's PKIX implementation. It
  569. # is not guaranteed to be examined and used by other implementations.
  570. #
  571. # Example:
  572. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  573. #
  574. #
  575. jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
  576. RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, \
  577. SHA1 usage SignedJAR & denyAfter 2019-01-01, \
  578. include jdk.disabled.namedCurves
  579. #
  580. # Legacy algorithms for certification path (CertPath) processing and
  581. # signed JAR files.
  582. #
  583. # In some environments, a certain algorithm or key length may be undesirable
  584. # but is not yet disabled.
  585. #
  586. # Tools such as keytool and jarsigner may emit warnings when these legacy
  587. # algorithms are used. See the man pages for those tools for more information.
  588. #
  589. # The syntax is the same as the "jdk.certpath.disabledAlgorithms" and
  590. # "jdk.jar.disabledAlgorithms" security properties.
  591. #
  592. # Note: This property is currently used by the JDK Reference
  593. # implementation. It is not guaranteed to be examined and used by other
  594. # implementations.
  595. jdk.security.legacyAlgorithms=SHA1, \
  596. RSA keySize < 2048, DSA keySize < 2048
  597. #
  598. # Algorithm restrictions for signed JAR files
  599. #
  600. # In some environments, certain algorithms or key lengths may be undesirable
  601. # for signed JAR validation. For example, "MD2" is generally no longer
  602. # considered to be a secure hash algorithm. This section describes the
  603. # mechanism for disabling algorithms based on algorithm name and/or key length.
  604. # JARs signed with any of the disabled algorithms or key sizes will be treated
  605. # as unsigned.
  606. #
  607. # The syntax of the disabled algorithm string is described as follows:
  608. # DisabledAlgorithms:
  609. # " DisabledAlgorithm { , DisabledAlgorithm } "
  610. #
  611. # DisabledAlgorithm:
  612. # AlgorithmName [Constraint] { '&' Constraint }
  613. #
  614. # AlgorithmName:
  615. # (see below)
  616. #
  617. # Constraint:
  618. # KeySizeConstraint | DenyAfterConstraint
  619. #
  620. # KeySizeConstraint:
  621. # keySize Operator KeyLength
  622. #
  623. # DenyAfterConstraint:
  624. # denyAfter YYYY-MM-DD
  625. #
  626. # Operator:
  627. # <= | < | == | != | >= | >
  628. #
  629. # KeyLength:
  630. # Integer value of the algorithm's key length in bits
  631. #
  632. # Note: This property is currently used by the JDK Reference
  633. # implementation. It is not guaranteed to be examined and used by other
  634. # implementations.
  635. #
  636. # See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
  637. #
  638. jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
  639. DSA keySize < 1024, SHA1 denyAfter 2019-01-01, \
  640. include jdk.disabled.namedCurves
  641. #
  642. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  643. # (SSL/TLS) processing
  644. #
  645. # In some environments, certain algorithms or key lengths may be undesirable
  646. # when using SSL/TLS. This section describes the mechanism for disabling
  647. # algorithms during SSL/TLS security parameters negotiation, including
  648. # protocol version negotiation, cipher suites selection, peer authentication
  649. # and key exchange mechanisms.
  650. #
  651. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  652. # if they are enabled explicitly in an application.
  653. #
  654. # For PKI-based peer authentication and key exchange mechanisms, this list
  655. # of disabled algorithms will also be checked during certification path
  656. # building and validation, including algorithms used in certificates, as
  657. # well as revocation information such as CRLs and signed OCSP Responses.
  658. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  659. #
  660. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  661. # syntax of the disabled algorithm string.
  662. #
  663. # Note: The algorithm restrictions do not apply to trust anchors or
  664. # self-signed certificates.
  665. #
  666. # Note: This property is currently used by the JDK Reference implementation.
  667. # It is not guaranteed to be examined and used by other implementations.
  668. #
  669. # Example:
  670. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
  671. jdk.tls.disabledAlgorithms=RC4, DES, MD5withRSA, \
  672. DH keySize < 1024, EC keySize < 224, anon, NULL, \
  673. include jdk.disabled.namedCurves
  674. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  675. # processing in JSSE implementation.
  676. #
  677. # In some environments, a certain algorithm may be undesirable but it
  678. # cannot be disabled because of its use in legacy applications. Legacy
  679. # algorithms may still be supported, but applications should not use them
  680. # as the security strength of legacy algorithms are usually not strong enough
  681. # in practice.
  682. #
  683. # During SSL/TLS security parameters negotiation, legacy algorithms will
  684. # not be negotiated unless there are no other candidates.
  685. #
  686. # The syntax of the legacy algorithms string is described as this Java
  687. # BNF-style:
  688. # LegacyAlgorithms:
  689. # " LegacyAlgorithm { , LegacyAlgorithm } "
  690. #
  691. # LegacyAlgorithm:
  692. # AlgorithmName (standard JSSE algorithm name)
  693. #
  694. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  695. # for the syntax and description of the "AlgorithmName" notation.
  696. #
  697. # Per SSL/TLS specifications, cipher suites have the form:
  698. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  699. # or
  700. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  701. #
  702. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  703. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  704. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  705. # algorithm for HMAC.
  706. #
  707. # The LegacyAlgorithm can be one of the following standard algorithm names:
  708. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  709. # 2. JSSE key exchange algorithm name, e.g., RSA
  710. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  711. # 4. JSSE message digest algorithm name, e.g., SHA
  712. #
  713. # See SSL/TLS specifications and "Java Cryptography Architecture Standard
  714. # Algorithm Name Documentation" for information about the algorithm names.
  715. #
  716. # Note: This property is currently used by the JDK Reference implementation.
  717. # It is not guaranteed to be examined and used by other implementations.
  718. # There is no guarantee the property will continue to exist or be of the
  719. # same syntax in future releases.
  720. #
  721. # Example:
  722. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  723. #
  724. jdk.tls.legacyAlgorithms= \
  725. K_NULL, C_NULL, M_NULL, \
  726. DH_anon, ECDH_anon, \
  727. RC4_128, RC4_40
  728. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  729. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  730. #
  731. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  732. # negotiation mechanism is not used, the server offers the client group
  733. # parameters, base generator g and prime modulus p, for DHE key exchange.
  734. # It is recommended to use dynamic group parameters. This property defines
  735. # a mechanism that allows you to specify custom group parameters.
  736. #
  737. # The syntax of this property string is described as this Java BNF-style:
  738. # DefaultDHEParameters:
  739. # DefinedDHEParameters { , DefinedDHEParameters }
  740. #
  741. # DefinedDHEParameters:
  742. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  743. #
  744. # DHEPrimeModulus:
  745. # HexadecimalDigits
  746. #
  747. # DHEBaseGenerator:
  748. # HexadecimalDigits
  749. #
  750. # HexadecimalDigits:
  751. # HexadecimalDigit { HexadecimalDigit }
  752. #
  753. # HexadecimalDigit: one of
  754. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  755. #
  756. # Whitespace characters are ignored.
  757. #
  758. # The "DefinedDHEParameters" defines the custom group parameters, prime
  759. # modulus p and base generator g, for a particular size of prime modulus p.
  760. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  761. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  762. # parameter. It is recommended to use safe primes for the custom group
  763. # parameters.
  764. #
  765. # If this property is not defined or the value is empty, the underlying JSSE
  766. # provider's default group parameter is used for each connection.
  767. #
  768. # If the property value does not follow the grammar, or a particular group
  769. # parameter is not valid, the connection will fall back and use the
  770. # underlying JSSE provider's default group parameter.
  771. #
  772. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  773. # is not guaranteed to be examined and used by other implementations.
  774. #
  775. # Example:
  776. # jdk.tls.server.defaultDHEParameters=
  777. # { \
  778. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  779. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  780. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  781. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  782. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  783. # FFFFFFFF FFFFFFFF, 2}
  784. #
  785. # TLS key limits on symmetric cryptographic algorithms
  786. #
  787. # This security property sets limits on algorithms key usage in TLS 1.3.
  788. # When the amount of data encrypted exceeds the algorithm value listed below,
  789. # a KeyUpdate message will trigger a key change. This is for symmetric ciphers
  790. # with TLS 1.3 only.
  791. #
  792. # The syntax for the property is described below:
  793. # KeyLimits:
  794. # " KeyLimit { , KeyLimit } "
  795. #
  796. # WeakKeyLimit:
  797. # AlgorithmName Action Length
  798. #
  799. # AlgorithmName:
  800. # A full algorithm transformation.
  801. #
  802. # Action:
  803. # KeyUpdate
  804. #
  805. # Length:
  806. # The amount of encrypted data in a session before the Action occurs
  807. # This value may be an integer value in bytes, or as a power of two, 2^29.
  808. #
  809. # KeyUpdate:
  810. # The TLS 1.3 KeyUpdate handshake process begins when the Length amount
  811. # is fulfilled.
  812. #
  813. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  814. # is not guaranteed to be examined and used by other implementations.
  815. #
  816. jdk.tls.keyLimits=AES/GCM/NoPadding KeyUpdate 2^37
  817. # Cryptographic Jurisdiction Policy defaults
  818. #
  819. # Import and export control rules on cryptographic software vary from
  820. # country to country. By default, the JDK provides two different sets of
  821. # cryptographic policy files:
  822. #
  823. # unlimited: These policy files contain no restrictions on cryptographic
  824. # strengths or algorithms.
  825. #
  826. # limited: These policy files contain more restricted cryptographic
  827. # strengths, and are still available if your country or
  828. # usage requires the traditional restrictive policy.
  829. #
  830. # The JDK JCE framework uses the unlimited policy files by default.
  831. # However the user may explicitly choose a set either by defining the
  832. # "crypto.policy" Security property or by installing valid JCE policy
  833. # jar files into the traditional JDK installation location. To better
  834. # support older JDK Update releases, the "crypto.policy" property is not
  835. # defined by default. See below for more information.
  836. #
  837. # The following logic determines which policy files are used:
  838. #
  839. # <java-home> refers to the directory where the JRE was
  840. # installed and may be determined using the "java.home"
  841. # System property.
  842. #
  843. # 1. If the Security property "crypto.policy" has been defined,
  844. # then the following mechanism is used:
  845. #
  846. # The policy files are stored as jar files in subdirectories of
  847. # <java-home>/lib/security/policy. Each directory contains a complete
  848. # set of policy files.
  849. #
  850. # The "crypto.policy" Security property controls the directory
  851. # selection, and thus the effective cryptographic policy.
  852. #
  853. # The default set of directories is:
  854. #
  855. # limited | unlimited
  856. #
  857. # 2. If the "crypto.policy" property is not set and the traditional
  858. # US_export_policy.jar and local_policy.jar files
  859. # (e.g. limited/unlimited) are found in the legacy
  860. # <java-home>/lib/security directory, then the rules embedded within
  861. # those jar files will be used. This helps preserve compatibility
  862. # for users upgrading from an older installation.
  863. #
  864. # 3. If the jar files are not present in the legacy location
  865. # and the "crypto.policy" Security property is not defined,
  866. # then the JDK will use the unlimited settings (equivalent to
  867. # crypto.policy=unlimited)
  868. #
  869. # Please see the JCA documentation for additional information on these
  870. # files and formats.
  871. #
  872. # YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY
  873. # TO DETERMINE THE EXACT REQUIREMENTS.
  874. #
  875. # Please note that the JCE for Java SE, including the JCE framework,
  876. # cryptographic policy files, and standard JCE providers provided with
  877. # the Java SE, have been reviewed and approved for export as mass market
  878. # encryption item by the US Bureau of Industry and Security.
  879. #
  880. # Note: This property is currently used by the JDK Reference implementation.
  881. # It is not guaranteed to be examined and used by other implementations.
  882. #
  883. #crypto.policy=unlimited
  884. #
  885. # The policy for the XML Signature secure validation mode. The mode is
  886. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  887. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  888. # or by running the code with a SecurityManager.
  889. #
  890. # Policy:
  891. # Constraint {"," Constraint }
  892. # Constraint:
  893. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  894. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  895. # AlgConstraint
  896. # "disallowAlg" Uri
  897. # MaxTransformsConstraint:
  898. # "maxTransforms" Integer
  899. # MaxReferencesConstraint:
  900. # "maxReferences" Integer
  901. # ReferenceUriSchemeConstraint:
  902. # "disallowReferenceUriSchemes" String { String }
  903. # KeySizeConstraint:
  904. # "minKeySize" KeyAlg Integer
  905. # OtherConstraint:
  906. # "noDuplicateIds" | "noRetrievalMethodLoops"
  907. #
  908. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  909. # See the XML Signature Recommendation for more information on algorithm
  910. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  911. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  912. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  913. # specified more than once, only the last entry is enforced.
  914. #
  915. # Note: This property is currently used by the JDK Reference implementation. It
  916. # is not guaranteed to be examined and used by other implementations.
  917. #
  918. jdk.xml.dsig.secureValidationPolicy=\
  919. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  920. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  921. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  922. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  923. maxTransforms 5,\
  924. maxReferences 30,\
  925. disallowReferenceUriSchemes file http https,\
  926. minKeySize RSA 1024,\
  927. minKeySize DSA 1024,\
  928. minKeySize EC 224,\
  929. noDuplicateIds,\
  930. noRetrievalMethodLoops
  931. #
  932. # Serialization process-wide filter
  933. #
  934. # A filter, if configured, is used by java.io.ObjectInputStream during
  935. # deserialization to check the contents of the stream.
  936. # A filter is configured as a sequence of patterns, each pattern is either
  937. # matched against the name of a class in the stream or defines a limit.
  938. # Patterns are separated by ";" (semicolon).
  939. # Whitespace is significant and is considered part of the pattern.
  940. #
  941. # If the system property jdk.serialFilter is also specified on the command
  942. # line, it supersedes the security property value defined here.
  943. #
  944. # If a pattern includes a "=", it sets a limit.
  945. # If a limit appears more than once the last value is used.
  946. # Limits are checked before classes regardless of the order in the sequence of patterns.
  947. # If any of the limits are exceeded, the filter status is REJECTED.
  948. #
  949. # maxdepth=value - the maximum depth of a graph
  950. # maxrefs=value - the maximum number of internal references
  951. # maxbytes=value - the maximum number of bytes in the input stream
  952. # maxarray=value - the maximum array length allowed
  953. #
  954. # Other patterns, from left to right, match the class or package name as
  955. # returned from Class.getName.
  956. # If the class is an array type, the class or package to be matched is the element type.
  957. # Arrays of any number of dimensions are treated the same as the element type.
  958. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  959. # array of example.Foo.
  960. #
  961. # If the pattern starts with "!", the status is REJECTED if the remaining pattern
  962. # is matched; otherwise the status is ALLOWED if the pattern matches.
  963. # If the pattern ends with ".**" it matches any class in the package and all subpackages.
  964. # If the pattern ends with ".*" it matches any class in the package.
  965. # If the pattern ends with "*", it matches any class with the pattern as a prefix.
  966. # If the pattern is equal to the class name, it matches.
  967. # Otherwise, the status is UNDECIDED.
  968. #
  969. # Primitive types are not configurable with this filter.
  970. #
  971. #jdk.serialFilter=pattern;pattern
  972. #
  973. # RMI Registry Serial Filter
  974. #
  975. # The filter pattern uses the same format as jdk.serialFilter.
  976. # This filter can override the builtin filter if additional types need to be
  977. # allowed or rejected from the RMI Registry or to decrease limits but not
  978. # to increase limits.
  979. # If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected.
  980. #
  981. # The maxdepth of any array passed to the RMI Registry is set to
  982. # 10000. The maximum depth of the graph is set to 20.
  983. # These limits can be reduced via the maxarray, maxdepth limits.
  984. #
  985. #sun.rmi.registry.registryFilter=pattern;pattern
  986. #
  987. # Array construction of any component type, including subarrays and arrays of
  988. # primitives, are allowed unless the length is greater than the maxarray limit.
  989. # The filter is applied to each array element.
  990. #
  991. # The built-in filter allows subclasses of allowed classes and
  992. # can approximately be represented as the pattern:
  993. #
  994. #sun.rmi.registry.registryFilter=\
  995. # maxarray=1000000;\
  996. # maxdepth=20;\
  997. # java.lang.String;\
  998. # java.lang.Number;\
  999. # java.lang.reflect.Proxy;\
  1000. # java.rmi.Remote;\
  1001. # sun.rmi.server.UnicastRef;\
  1002. # sun.rmi.server.RMIClientSocketFactory;\
  1003. # sun.rmi.server.RMIServerSocketFactory;\
  1004. # java.rmi.activation.ActivationID;\
  1005. # java.rmi.server.UID
  1006. #
  1007. # RMI Distributed Garbage Collector (DGC) Serial Filter
  1008. #
  1009. # The filter pattern uses the same format as jdk.serialFilter.
  1010. # This filter can override the builtin filter if additional types need to be
  1011. # allowed or rejected from the RMI DGC.
  1012. #
  1013. # The builtin DGC filter can approximately be represented as the filter pattern:
  1014. #
  1015. #sun.rmi.transport.dgcFilter=\
  1016. # java.rmi.server.ObjID;\
  1017. # java.rmi.server.UID;\
  1018. # java.rmi.dgc.VMID;\
  1019. # java.rmi.dgc.Lease;\
  1020. # maxdepth=5;maxarray=10000
  1021. # CORBA ORBIorTypeCheckRegistryFilter
  1022. # Type check enhancement for ORB::string_to_object processing
  1023. #
  1024. # An IOR type check filter, if configured, is used by an ORB during
  1025. # an ORB::string_to_object invocation to check the veracity of the type encoded
  1026. # in the ior string.
  1027. #
  1028. # The filter pattern consists of a semi-colon separated list of class names.
  1029. # The configured list contains the binary class names of the IDL interface types
  1030. # corresponding to the IDL stub class to be instantiated.
  1031. # As such, a filter specifies a list of IDL stub classes that will be
  1032. # allowed by an ORB when an ORB::string_to_object is invoked.
  1033. # It is used to specify a white list configuration of acceptable
  1034. # IDL stub types which may be contained in a stringified IOR
  1035. # parameter passed as input to an ORB::string_to_object method.
  1036. #
  1037. # Note: This property is currently used by the JDK Reference implementation.
  1038. # It is not guaranteed to be examined and used by other implementations.
  1039. #
  1040. #com.sun.CORBA.ORBIorTypeCheckRegistryFilter=binary_class_name;binary_class_name
  1041. #
  1042. # JCEKS Encrypted Key Serial Filter
  1043. #
  1044. # This filter, if configured, is used by the JCEKS KeyStore during the
  1045. # deserialization of the encrypted Key object stored inside a key entry.
  1046. # If not configured or the filter result is UNDECIDED (i.e. none of the patterns
  1047. # matches), the filter configured by jdk.serialFilter will be consulted.
  1048. #
  1049. # If the system property jceks.key.serialFilter is also specified, it supersedes
  1050. # the security property value defined here.
  1051. #
  1052. # The filter pattern uses the same format as jdk.serialFilter. The default
  1053. # pattern allows java.lang.Enum, java.security.KeyRep, java.security.KeyRep$Type,
  1054. # and javax.crypto.spec.SecretKeySpec and rejects all the others.
  1055. jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
  1056. java.security.KeyRep$Type;javax.crypto.spec.SecretKeySpec;!*
  1057. #
  1058. # PKCS12 KeyStore properties
  1059. #
  1060. # The following properties, if configured, are used by the PKCS12 KeyStore
  1061. # implementation during the creation of a new keystore. Several of the
  1062. # properties may also be used when modifying an existing keystore. The
  1063. # properties can be overridden by a KeyStore API that specifies its own
  1064. # algorithms and parameters.
  1065. #
  1066. # If an existing PKCS12 keystore is loaded and then stored, the algorithm and
  1067. # parameter used to generate the existing Mac will be reused. If the existing
  1068. # keystore does not have a Mac, no Mac will be created while storing. If there
  1069. # is at least one certificate in the existing keystore, the algorithm and
  1070. # parameters used to encrypt the last certificate in the existing keystore will
  1071. # be reused to encrypt all certificates while storing. If the last certificate
  1072. # in the existing keystore is not encrypted, all certificates will be stored
  1073. # unencrypted. If there is no certificate in the existing keystore, any newly
  1074. # added certificate will be encrypted (or stored unencrypted if algorithm
  1075. # value is "NONE") using the "keystore.pkcs12.certProtectionAlgorithm" and
  1076. # "keystore.pkcs12.certPbeIterationCount" values defined here. Existing private
  1077. # and secret key(s) are not changed. Newly set private and secret key(s) will
  1078. # be encrypted using the "keystore.pkcs12.keyProtectionAlgorithm" and
  1079. # "keystore.pkcs12.keyPbeIterationCount" values defined here.
  1080. #
  1081. # In order to apply new algorithms and parameters to all entries in an
  1082. # existing keystore, one can create a new keystore and add entries in the
  1083. # existing keystore into the new keystore. This can be achieved by calling the
  1084. # "keytool -importkeystore" command.
  1085. #
  1086. # If a system property of the same name is also specified, it supersedes the
  1087. # security property value defined here.
  1088. #
  1089. # If the property is set to an illegal value,
  1090. # an iteration count that is not a positive integer, or an unknown algorithm
  1091. # name, an exception will be thrown when the property is used.
  1092. # If the property is not set or empty, a default value will be used.
  1093. #
  1094. # Note: These properties are currently used by the JDK Reference implementation.
  1095. # They are not guaranteed to be examined and used by other implementations.
  1096. # The algorithm used to encrypt a certificate. This can be any non-Hmac PBE
  1097. # algorithm defined in the Cipher section of the Java Security Standard
  1098. # Algorithm Names Specification. When set to "NONE", the certificate
  1099. # is not encrypted. The default value is "PBEWithSHA1AndRC2_40".
  1100. #keystore.pkcs12.certProtectionAlgorithm = PBEWithSHA1AndRC2_40
  1101. # The iteration count used by the PBE algorithm when encrypting a certificate.
  1102. # This value must be a positive integer. The default value is 50000.
  1103. #keystore.pkcs12.certPbeIterationCount = 50000
  1104. # The algorithm used to encrypt a private key or secret key. This can be
  1105. # any non-Hmac PBE algorithm defined in the Cipher section of the Java
  1106. # Security Standard Algorithm Names Specification. The value must not be "NONE".
  1107. # The default value is "PBEWithSHA1AndDESede".
  1108. #keystore.pkcs12.keyProtectionAlgorithm = PBEWithSHA1AndDESede
  1109. # The iteration count used by the PBE algorithm when encrypting a private key
  1110. # or a secret key. This value must be a positive integer. The default value
  1111. # is 50000.
  1112. #keystore.pkcs12.keyPbeIterationCount = 50000
  1113. # The algorithm used to calculate the optional MacData at the end of a PKCS12
  1114. # file. This can be any HmacPBE algorithm defined in the Mac section of the
  1115. # Java Security Standard Algorithm Names Specification. When set to "NONE",
  1116. # no Mac is generated. The default value is "HmacPBESHA1".
  1117. #keystore.pkcs12.macAlgorithm = HmacPBESHA1
  1118. # The iteration count used by the MacData algorithm. This value must be a
  1119. # positive integer. The default value is 100000.
  1120. #keystore.pkcs12.macIterationCount = 100000
  1121. # The iteration count used for password-based encryption (PBE) in JCEKS
  1122. # keystores. Values in the range 10000 to 5000000 are considered valid.
  1123. # If the value is out of this range, or is not a number, or is unspecified;
  1124. # a default of 200000 is used.
  1125. #
  1126. # If the system property jdk.jceks.iterationCount is also specified, it
  1127. # supersedes the security property value defined here.
  1128. #
  1129. #jdk.jceks.iterationCount = 200000
  1130. #
  1131. # Disabled mechanisms for the Simple Authentication and Security Layer (SASL)
  1132. #
  1133. # Disabled mechanisms will not be negotiated by both SASL clients and servers.
  1134. # These mechanisms will be ignored if they are specified in the "mechanisms"
  1135. # argument of "Sasl.createSaslClient" or the "mechanism" argument of
  1136. # "Sasl.createSaslServer".
  1137. #
  1138. # The value of this property is a comma-separated list of SASL mechanisms.
  1139. # The mechanisms are case-sensitive. Whitespaces around the commas are ignored.
  1140. #
  1141. # Note: This property is currently used by the JDK Reference implementation.
  1142. # It is not guaranteed to be examined and used by other implementations.
  1143. #
  1144. # Example:
  1145. # jdk.sasl.disabledMechanisms=PLAIN, CRAM-MD5, DIGEST-MD5
  1146. jdk.sasl.disabledMechanisms=
  1147. #
  1148. # Policies for distrusting Certificate Authorities (CAs).
  1149. #
  1150. # This is a comma separated value of one or more case-sensitive strings, each
  1151. # of which represents a policy for determining if a CA should be distrusted.
  1152. # The supported values are:
  1153. #
  1154. #
  1155. # SYMANTEC_TLS : Distrust TLS Server certificates anchored by a Symantec
  1156. # root CA and issued after April 16, 2019 unless issued by one of the
  1157. # following subordinate CAs which have a later distrust date:
  1158. # 1. Apple IST CA 2 - G1, SHA-256 fingerprint:
  1159. # AC2B922ECFD5E01711772FEA8ED372DE9D1E2245FCE3F57A9CDBEC77296A424B
  1160. # Distrust after December 31, 2019.
  1161. # 2. Apple IST CA 8 - G1, SHA-256 fingerprint:
  1162. # A4FE7C7F15155F3F0AEF7AAA83CF6E06DEB97CA3F909DF920AC1490882D488ED
  1163. # Distrust after December 31, 2019.
  1164. # Leading and trailing whitespace surrounding each value are ignored.
  1165. # Unknown values are ignored. If the property is commented out or set to the
  1166. # empty String, no policies are enforced.
  1167. #
  1168. # Note: This property is currently used by the JDK Reference implementation.
  1169. # It is not guaranteed to be supported by other SE implementations. Also, this
  1170. # property does not override other security properties which can restrict
  1171. # certificates such as jdk.tls.disabledAlgorithms or
  1172. # jdk.certpath.disabledAlgorithms; those restrictions are still enforced even
  1173. # if this property is not enabled.
  1174. #
  1175. jdk.security.caDistrustPolicies=SYMANTEC_TLS
  1176. #
  1177. # Policies for the proxy_impersonator Kerberos ccache configuration entry
  1178. #
  1179. # The proxy_impersonator ccache configuration entry indicates that the ccache
  1180. # is a synthetic delegated credential for use with S4U2Proxy by an intermediate
  1181. # server. The ccache file should also contain the TGT of this server and
  1182. # an evidence ticket from the default principal of the ccache to this server.
  1183. #
  1184. # This security property determines how Java uses this configuration entry.
  1185. # There are 3 possible values:
  1186. #
  1187. # no-impersonate - Ignore this configuration entry, and always act as
  1188. # the owner of the TGT (if it exists).
  1189. #
  1190. # try-impersonate - Try impersonation when this configuration entry exists.
  1191. # If no matching TGT or evidence ticket is found,
  1192. # fallback to no-impersonate.
  1193. #
  1194. # always-impersonate - Always impersonate when this configuration entry exists.
  1195. # If no matching TGT or evidence ticket is found,
  1196. # no initial credential is read from the ccache.
  1197. #
  1198. # The default value is "always-impersonate".
  1199. #
  1200. # If a system property of the same name is also specified, it supersedes the
  1201. # security property value defined here.
  1202. #
  1203. #jdk.security.krb5.default.initiate.credential=always-impersonate
  1204. #
  1205. # Trust Anchor Certificates - CA Basic Constraint check
  1206. #
  1207. # X.509 v3 certificates used as Trust Anchors (to validate signed code or TLS
  1208. # connections) must have the cA Basic Constraint field set to 'true'. Also, if
  1209. # they include a Key Usage extension, the keyCertSign bit must be set. These
  1210. # checks, enabled by default, can be disabled for backward-compatibility
  1211. # purposes with the jdk.security.allowNonCaAnchor System and Security
  1212. # properties. In the case that both properties are simultaneously set, the
  1213. # System value prevails. The default value of the property is "false".
  1214. #
  1215. #jdk.security.allowNonCaAnchor=true
  1216. #
  1217. # The default Character set name (java.nio.charset.Charset.forName())
  1218. # for converting TLS ALPN values between byte arrays and Strings.
  1219. # Prior versions of the JDK may use UTF-8 as the default charset. If
  1220. # you experience interoperability issues, setting this property to UTF-8
  1221. # may help.
  1222. #
  1223. # jdk.tls.alpnCharset=UTF-8
  1224. jdk.tls.alpnCharset=ISO_8859_1
  1225. #
  1226. # JNDI Object Factories Filter
  1227. #
  1228. # This filter is used by the JNDI runtime to control the set of object factory classes
  1229. # which will be allowed to instantiate objects from object references returned by
  1230. # naming/directory systems. The factory class named by the reference instance will be
  1231. # matched against this filter. The filter property supports pattern-based filter syntax
  1232. # with the same format as jdk.serialFilter.
  1233. #
  1234. # Each pattern is matched against the factory class name to allow or disallow it's
  1235. # instantiation. The access to a factory class is allowed unless the filter returns
  1236. # REJECTED.
  1237. #
  1238. # Note: This property is currently used by the JDK Reference implementation.
  1239. # It is not guaranteed to be examined and used by other implementations.
  1240. #
  1241. # If the system property jdk.jndi.object.factoriesFilter is also specified, it supersedes
  1242. # the security property value defined here. The default value of the property is "*".
  1243. #
  1244. # The default pattern value allows any object factory class specified by the reference
  1245. # instance to recreate the referenced object.
  1246. #jdk.jndi.object.factoriesFilter=*