Certificate validation through public ledgers and blockchains