pem

Royal Mail Shipping API - SOAP connection & pem/certificates query

天大地大妈咪最大 提交于 2019-12-18 05:25:15
问题 I am trying to setup the Royal Mail Shipping API (if anyone has any experience of this i'd be grateful if you could assist). In the documentation they provide I need to download a certificate (a .p12 file) & import this onto my Windows machine - this is pretty straightforward using the 'Certificate Import Wizard'. Once it gets to the "Set Security Level' I must select High & this will request permission with a password each time this is used. In Internet Explorer in 'Internet Options' within

Convert PEM to PPK file format

房东的猫 提交于 2019-12-17 21:39:08
问题 Is there a way to convert PEM files to PPK files? (you may guess that Amazon EC2 gives me a PEM file, and I need to use the PPK format for SSH connectivity). 回答1: Use PuTTYGen Creating and Using SSH Keys Overview vCloud Express now has the ability to create SSH Keys for Linux servers. This function will allow the user to create multiple custom keys by selecting the "My Account/Key Management" option. Once the key has been created the user will be required to select the desired SSH Key during

How is a private key encrypted in a pem certificate?

陌路散爱 提交于 2019-12-17 21:18:16
问题 As part of trying to debug an issue, I am trying to understand how a private key is encrypted in a pem certificate, because I am wondering whether curl does not manage to decrypt the private key. I have a -----BEGIN ENCRYPTED PRIVATE KEY----- section in my pem . Is it encrypted with the passphrase? Is there some other kind of encryption scheme involved? More precisely A colleague suggests a private key could be encrypted in a pem even without a passphrase. Is this is correct? 回答1: Private

Message digest of pdf in digital signature

╄→尐↘猪︶ㄣ 提交于 2019-12-17 20:17:41
问题 I want to manually verify the integrity of a signed pdf. I have been able to reach at:- got the value of '/Content' node from pdf(using PyPDF2 ). This is a der encoded PKCS#7 certificate. Now as per pdf specifications , the message digest of the pdf data is stored along with the certificate in /Content node. Tried a lot but I am not able to get the digest value which I would eventually compare with hashed pdf content(specified by /ByteRange ). PDF specification snapshot:- Don't understand the

SignedJwtAssertionCredentials on AppEngine doesn't recognize PEM key

南笙酒味 提交于 2019-12-17 17:58:08
问题 SignedJwtAssertionCredentials on appengine (with pycrypto 2.6) doesn't support the PKCS12 format, therefore I'm trying to use PEM keys instead, as suggested everywhere.. this is my code: f = file(os.path.join(os.path.dirname(__file__), KEY_FILE), "r") key = f.read() f.close() credentials = SignedJwtAssertionCredentials(SERVICE_ACCOUNT_EMAIL, key, scope="https://www.googleapis.com/auth/drive" http = httplib2.Http() http = credentials.authorize(http) and the KEY_FILE is a PEM key, converted

iOS 消息推送原理及实现Demo

那年仲夏 提交于 2019-12-17 17:56:31
本文转载至 http://www.cnblogs.com/cdts_change/p/3240893.html 一、消息推送原理: 在实现消息推送之前先提及几个于推送相关概念,如下图 1-1 : 1、 Provider :就是为指定 IOS 设备应用程序提供 Push 的服务器,(如果 IOS 设备的应用程序是客户端的话,那么 Provider 可以理解为服务端 [ 消息的发起者 ] ); 2、 APNS : Apple Push Notification Service[ 苹果消息推送服务器 ] ; 3、 iPhone :用来接收 APNS 下发下来的消息; 4、 Client App : IOS 设备上的应用程序,用来接收 iphone 传递 APNS 下发的消息到制定的一个客户端 app[ 消息的最终响应者 ] ; 上图可以分为三个阶段: 阶段一: Provider[ 服务端 ] 把要发送的消息,目的 IOS 设备标识打包,发送给 APNS ; 阶段二: APNS 在自身的已注册 Push 服务的 IOS 设备列表中,查找有相应标识的 IOS 设备,并将消息发送到 IOS 设备; 阶段三: IOS 设备把发送的消息传递给对应的应用程序,并且按照设定弹出 Push 通知。 具体过程,如下图 1-2 : 1、 [Client App] 注册消息推送; 2、 [Client App

Formatting RSA keys for OpenSSL in Java

淺唱寂寞╮ 提交于 2019-12-17 17:45:36
问题 Background RSA key generation with OpenSSL on Linux using the command, openssl genrsa -out mykey.pem 1024 created the following: "-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQChs9Fepy5FgeL0gNJ8GHcKRHsYnM2Kkw19zwydDQNyh2hrHWV2 B11wpLFp8d0imcl2Wjb0oV/AxOhb3unQgNzs66LVuXJwS8icp3oIJZtExs6tkxzE s5mnU68wMeCYtJqHIZOmNblVWvpJMLNAwAVi3oLfnzDDbzjnDapm8M21nQIDAQAB AoGAZ11P1+acUHgvwMXcRtFIvvp5iYkqZouL00EYOghIjNx75gTbh7A7jbbpZeTi y6xsuMgAWy4QzGPSeG+tHMhS7+dYQNPuKSv5KtK3V7ubXz/I3ZN1etRVecA56QNw

Export private/public keys from X509 certificate to PEM

╄→尐↘猪︶ㄣ 提交于 2019-12-17 16:57:25
问题 is there any convenient way to export private/public keys from .p12 certificate in PEM format using .NET Core ? Without manipulating with bytes at low level? I googled for hours and almost nothing is usable in .net core or it isn't documented anywhere.. Let's have an X509Certificate2 var cert = new X509Certificate2(someBytes, pass); var privateKey = cert.GetRSAPrivateKey(); var publicKey = cert.GetRSAPublicKey(); // assume everything is fine so far And now I need to export the keys as two

Use PEM Encoded CA Cert on filesystem directly for HTTPS request?

≯℡__Kan透↙ 提交于 2019-12-17 16:43:11
问题 This is similar to Import PEM into Java Key Store. But the question's answers use OpenSSL for conversions and tools to import them into key stores on the file system. I'm trying to use a well formed X509 certificate as a trust anchor: static String CA_FILE = "ca-rsa-cert.pem"; public static void main(String[] args) throws Exception { KeyStore ks = KeyStore.getInstance("JKS"); ks.load(new FileInputStream(CA_FILE), null); TrustManagerFactory tmf = TrustManagerFactory .getInstance

从 p12 格式 SSL 证书解出 pem 格式公钥私钥给 Postman 使用

孤街浪徒 提交于 2019-12-17 10:47:17
目的 Postman 的(非 Chrome 扩展版的)app 并不能读取系统中的客户端证书,这种调试要发送客户端证书的 https 请求的时候就得自己另外设置。 系统直接导出证书有 cer 和 p12 两种格式,Postman 需要的是 pem 文本格式的,所以需要转换一下。另外 Nginx 服务器也是使用这种格式的证书。 步骤 导出 p12 证书 Mac 上打开 Keychain Access,找到自己要导出的客户端证书,右键 - Export - 选择 p12 格式,保存。 保存的时候需要输入一个 p12 的密码,后面转换的时候会用到,请记下来。 转换 用两个命令分别转换出公私钥。 两个命令会需要用到上一步的密码。 生成 key 的那一步还要再设置一个 key 的密码,同样后后面会用到,请记下来。 openssl pkcs12 -in your.p12 -clcerts -nokeys -out your-public-cert.pem openssl pkcs12 -in your.p12 -nocerts -out your-private-key.pem public-cert.pem: private-key.pem: 使用 在 Postman 中设置 参考 openssl - Extract public/private key from PKCS12 file