If the specified certificate is not correct, creating a port may fail. Make sure you are using the correct certificate.
If a CA certificate is not imported to the computer, creating a port may fail. Make sure a CA certificate is imported.
Configuring a Server Certificate for the Printer