keyMaterial = ((OpenSslPrivateKey) key).toKeyMaterial(chain, certificates); } else { pkeyBio = toBIO(allocator, key);
keyMaterial = ((OpenSslPrivateKey) key).toKeyMaterial(chain); } else { pkeyBio = toBIO(allocator, key);
keyMaterial = ((OpenSslPrivateKey) key).toKeyMaterial(chain, certificates); } else { pkeyBio = toBIO(allocator, key);