Apple server require a CSR(CertificateSigningRequest) in order that apple MFI provide a pem certificate.
I generated the CSR with the following keyhole commands:
keytool -genkeypair -keystore mycompany.jks -alias mycompany.com -keyalg RSA -keysize 2048 -dname "CN=MFi-111111, O=MYCOMPANY Inc."
keytool -certreq -keystore mycompany.jks -alias mycompany.com -sigalg SHA256withRSA
but when I want to connect to the apple server it's required to use the private key with the certificate I got from apple.
How to generate the private key with Keytool from mycompany.jks
?