ios php RSA 非对称加密解密 der 和pem生成

时间:2021-03-01 09:01:09

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 [----用于测试----]