我使用GUI工具制作X509证书,并尝试使用Python的M2Crypto从该证书中提取有用信息,但遇到了问题。代码如下:
ca = X509.load_cert(“MyCA.crt”,X509.FORMAT_PEM) print ca_pub.as_pem(cipher = None)
-----开始私钥----- MIIBJwIBADANBgkqhkiG9w0BAQEFAASCAREwggENAgEAAoIBAQDol4gW9mDc8IRW Ack4Y0 / NK + OnikJPMj65YDIexVuW / ptCEnRAX + EZmB3lM4labS0Ou5gydKj3vpoR dUM6Un1d8YYyw8Q2gJGXDHbTFjn / eU98VxIa7nHYlZGLvG5g0Eo4fCTUw3CBhI3Y B8U3C89Ez1IL6sqly9Fhc5BICFtxVtCngWhapR3tIcR85h3vlUCmavhRyBmtdiku As6ceH9GxfaFmONph / GzKVHy7iA6MSAIf / EDyz5jRKfWwhLQh4Uq9BWfioaFlQPF iZlxs45iE3pAxrAAejkguUrjeAmIojQvQq9T0YNtdf3LQCUVn2Vfd9KkqncqADew tujidoEZAgMBAAE = ----- END PRIVATE KEY -----
我的问题:
非常感谢!!