我需要从PKCS7 pem格式化的字符串中提取PKCS10(CSR)。虽然我可以阅读PKCS7的内容,但我发现它只是一个证书而不是CSR。
我还使用https://certlogik.com/decoder/运行pem字符串以查看它包含的内容。我只能看到有效的证书。 有没有办法从下面的pem格式化字符串中获取CSR。
-----BEGIN CERTIFICATE-----
MIIIjAYJKoZIhvcNAQcCoIIIfTCCCHkCAQExDzANBglghkgBZQMEAgEFADCCAyoG
CSqGSIb3DQEHAaCCAxsEggMXMIIDEzCCAfsCAQAwSjFIMEYGA1UEAww/MjNFNzEz
NjAtMjRDOS00NzEhdXJuOnV1aWQ6NUJFNEYwQ0YtMjExMS01OEM3LUE5MkUtREQ1
NzlDN0U1MTE5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp1BuQRtK
LQtXrl4x9hwSmIR0SteTFO4WGrlaKapnllM7q/WyClkZg/fAPCN5+Lkn/CItctkM
Wds/09aqzA+dAAdK4X1uuq+ux7zKYYTIkPmcO7oaFWxGvm8ZvOX+2TH1MN5/xyWD
VHveRrFy7aHKsR+yFuEtrYpsSGBCU9pUrXKPkRBgvC4Ml3M/hjnSp3t3JOjZzeVQ
GA5HyQG94KP5VMgXcF2r9TTnHHqxMUBPc00UGL25eqxC8xmPTPh/lt8U5tHly3cS
T434EHblgbQOa4wo7XxytYYqvAZEwiZLv8DgeKJS/lOjCSQNpF3tIDdxengx0S/d
R1HZZa/ZANeE8QIDAQABoIGDMIGABgkqhkiG9w0BCQ4xczBxMDwGCisGAQQBgjdC
AQAELnVybjp1dWlkOjVCRTRGMENGLTIxMTEtNThDNy1BOTJFLURENTc5QzdFNTEx
OQAwDgYDVR0PAQH/BAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUFBwMCMAwGA1UdEwEB
/wQCMAAwDQYJKoZIhvcNAQELBQADggEBADgabvOqPxhzUSpOaI9T/sPXQAvmVrcp
dIke2MVHeNnvyYjyg070yv3bbHXRDsjq3MgEkBDYRNOW8/dgtjyGxyRPEMJ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PgDOIez45DN/HKylyhPG8NJdF+
oSmkJzAlMSMwIQYDVQQDExpSb290IENlcnRpZmljYXRlIEF1dGhvcml0eYIEeDbF
SjAdBgNVHQ4EFgQUvSTP7MCmf6Nrpo5KswIdDmsyxc0wDQYJKoZIhvcNAQELBQAD
ggEBAH+LU8oSyknN5NQp6YWFBekOxid17J+opvinRB1gQBxYGmLLpNwnJ3jBx+1a
Qo7aMMupjDLyClP7hP0lqDLbSY8RFBjlVcqhv4wai/rVRNVigfakJJrjUtUPVNSe
/NVpBH7NdAqJVM//e0WEWFyGGgsJdP0f11tRy1d871+DuUSZX2Hzv5vTbE8rScnQ
YUdpQ1sJX7VbMW+E1SGc0XDUqJEQpDuYXPP00/Jxamch+MHLyHjX4HTcmPYRoo9c
NEzL+fOob0ZI8UdVrN6PmCoRiePEW6ol9z5UUGb6VU7hwqV9BoLthUQBT+6dHsxs
dpl+EE8rX2BnmrWxkD6A860f8noxggFYMIIBVAIBATAtMCgxJjAkBgNVBAMTHURl
dmljZXMgQ2VydGlmaWNhdGUgQXV0aG9yaXR5AgFmMA0GCWCGSAFlAwQCAQUAMA0G
CSqGSIb3DQEBAQUABIIBAF5bjUS5Su6nqrzveapNCOuJAZf8A6OtiuNFN7H4JdRj
rLtepOVkP+nYo99vtLeeGae1CTCi357bd16v58Xv4JOoISqS9XoVkmEGvGUiClGR
wE+xYw7+++1xMDIQyvwHu6Z87VVOKlChTpT5du+eP6vBbfxeg5WN/23mdW2JZT5d
E/XohJgL4OnqhJuG5miVQ8hOu/CvZZ0nYZMz75s5+tVsES76o1U/9QfjS+CQImMF
AV3d7UBmCUnqZ10t5Y9IHBa9AEnMLfK/yIo2uwVIwI89LzA3+L8Ql1WJ1ZA7ecXZ
xGUIMz87AVho2zm3Z4tpZIGKxFlVvL3tkZQMZwocgCc=
-----END CERTIFICATE-----
答案 0 :(得分:1)
由于您拥有证书,因此只需获取证书中包含的信息(主题,公钥等)即可填写CSR。 但由于您没有与此公钥相关联的私钥,因此您无法签署CSR。