legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay インストールの会社 ID ごとに生成される暗号化キーは変更されますか?

written-by

Ryan Snuggs

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay インストールの会社 ID ごとに生成される暗号化キーは変更されますか?

Environment

  • Liferay 7.2

解決策

  • 次のポータル プロパティは、Liferay インストールの暗号化キーを変更します。
#
# Set this to the appropriate encryption algorithm to be used for company
# level encryption algorithms (except password encryption which is defined
# via the property "passwords.encryption.algorithm").
#
# If you change this setting, you may need to also change the property
# "company.encryption.key.size" to configure the desired encryption key
# size.
#
# For more details about encryption keys, see the Java Cryptography
# Extension documentation.
#
# Env: LIFERAY_COMPANY_PERIOD_ENCRYPTION_PERIOD_ALGORITHM
#
company.encryption.algorithm=AES
#company.encryption.algorithm=Blowfish
#company.encryption.algorithm=DES
#company.encryption.algorithm=DESede #
# Set this to define the size used for the company wide encryption key. If
# you change this setting, you may need to also change the property
# "company.encryption.algorithm" to ensure the algorithm supports your key
# size. Most encryption algorithm implementations do not support key sizes
# stronger than 128. Only those with unlimited strength cryptography support
# stronger keys.
#
# For more details about supported key sizes for encryption keys, see the
# Java Cryptography Extension documentation.
#
# Env: LIFERAY_COMPANY_PERIOD_ENCRYPTION_PERIOD_KEY_PERIOD_SIZE
#
#company.encryption.key.size=56
company.encryption.key.size=128
#company.encryption.key.size=168
#company.encryption.key.size=256
#company.encryption.key.size=384
#company.encryption.key.size=512

上記のプロパティが変更されていない場合、Liferay インストールの暗号化キーは変更されません。

did-this-article-resolve-your-issue

legacy-knowledge-base