Gmail – keytool error: Java Lang. exception: the input is not an X.509 certificate

I am trying to import the gmails SMTP certificate for JIRA, but I receive this error when importing using java keytool

I use OpenSSL to obtain the certificate. Everything is between - start certificate - and - end Certificate - (inclusive) I also tried to create an X.509 certificate using Windows certificate manager, but I still receive this error I have verified that there are no extra spaces in the file

I have seen many people encounter this problem on the Internet, but no solution seems to be useful to me Any help would be appreciated

thank you

Solution

openssl x509 -outform der -in foo. pem -out foo. der

Then use der encoded output certificate

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>