I asked Gemini to help me write Certificate Authority code, and it simply kept refusing because it was a security risk. Quite frustrating. Haven't tried on ChatGPT though.
It flat out refused to give me openssl commands to generate self signed certificates which I found very surprising.