rsa generation and index.html redirection