Support local aliases containing dots
@@ -551,7 +551,7 @@ private boolean isSuitableChain(X509Certificate[] chain, List<String> keyTypes,
if (builderIndexEnd > builderIndexStart)
{
int localAliasStart = builderIndexEnd + 1;
- int localAliasEnd = alias.indexOf('.', localAliasStart);
+ int localAliasEnd = alias.lastIndexOf('.');
if (localAliasEnd > localAliasStart)
{
int builderIndex = Integer.parseInt(alias.substring(builderIndexStart, builderIndexEnd));
