我在哪里可以获得PEM(私钥)?

| 我正在为销售人员进行idp启动的SAML响应,需要您的帮助。 我正在使用代码,发现我需要.pem(私钥)密钥。
KeyStore.PrivateKeyEntry pkEntry = (KeyStore.PrivateKeyEntry)   ks.getEntry(\"alias\", new KeyStore.PasswordProtection(password));

PrivateKey pk = pkEntry.getPrivateKey();
pem密钥将用于签署我的回复签名。我在哪里可以获得.pem密钥?     
已邀请:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -sha1 -subj ‘/C=US/ST=CA/L=San Mateo/CN=www.appirio.com’ -keyout key-mycompanyrsa.pem -out cert-mycompanyrsa.pem
更多信息: http://blog.jeffdouglas.com/2010/07/06/using-rsa-sha1-with-salesforce-crypto-class/     

要回复问题请先登录注册