会动的耳朵  

ios 使用public_key.der加密

php 使用 private_key.pem解密

 


openssl req -x509 -out public_key.der -outform der -new -newkey rsa:1024 -keyout private_key.pem

phrase: 

countryName : CN
StateName:Zhejiang
CityName:

organizationName: 
organizational Unit Name:  

CommonName:  

email address:  

openssl rsa -in private_key.pem -pubout -out public_key.pem [----用于测试----]

 

posted on 2014-12-24 10:49  会动的耳朵  阅读(299)  评论(0编辑  收藏  举报