In testing openjdk 11 with this java cookbook I found that the regex used to determine if a cacert is installed and should be deleted before being re-added incorrectly matches similarly named cacerts. Cert comapanyenterpriserootca2 is matching another cert called comapanyenterpriserootca2.1 see https://rubular.com/r/ITi0qdT26D6RWg for broken example. The certificate resource then attempts to delete comapanyenterpriserootca2 which doesn't exist and fails with fatal error "Error deleting existing certificate comapanyenterpriserootca2". See https://rubular.com/r/iF81EPJjw7d8Sv for the proposed fixed example"
Description
In testing openjdk 11 with this java cookbook I found that the regex used to determine if a cacert is installed and should be deleted before being re-added incorrectly matches similarly named cacerts. Cert comapanyenterpriserootca2 is matching another cert called comapanyenterpriserootca2.1 see https://rubular.com/r/ITi0qdT26D6RWg for broken example. The certificate resource then attempts to delete comapanyenterpriserootca2 which doesn't exist and fails with fatal error "Error deleting existing certificate comapanyenterpriserootca2". See https://rubular.com/r/iF81EPJjw7d8Sv for the proposed fixed example"
Issues Resolved
Check List