Для проверки, чтобы видеть, существует ли каталог используйте:
RewriteCond /path/to/directory -d
Для файла использовать
RewriteCond /path/to/file -f
Многие примеры работают с конкретными конфигурациями. Этот всегда работает, независимо от того, какую конфигурацию использует ваш сервер Apache: It shows both the algorithm and bit length.
If the algorithm is RSA, bit length must be no less than 1024.
Note that the algorithm might also be ECC, in which case a bit length of 160 bits is sufficient. You don't see them very often though (yet).