Decode recently created cert and key. It fixes #3964. While here, fix logical condition to create a new cert if crt or key is not present
Decode recently created cert and key. It fixes #3964. While here, fix logical condition to create a new cert if crt or key is not present