Say I create a certificate with some content and then sign it with my private key. Now, I decrypt the sign with a trusted CA's public key and somehow come up with content that can match the decrypted value and use this content to replace the initial content which was signed. I believe that to find such a content would be difficult because of hashing. But is it not at all possible ?
1 Answer
There are actually more attack vectors.
As @SteffenUllrich said, preimage attack: An attacker can try to create a message that gives the same hash. If you use one of standard signature algorithms, this will be impossible.
Another vector is to get the private key. If you use some "home grown" scheme with relatively small keys or some curve that is easy to brute-force, then it can be possible to brute-force the private key and thus to forge the signature. If you use an appropriate signature standard, brute-forcing will be impossible. But just keep in mind, that signature method with all its details should also be chosen carefully.