x509

How to get public key using PyOpenSSL?

给你一囗甜甜゛ 提交于 2020-01-03 10:47:11
问题 I'm tring to create python script, that would take PKCS#12 package and print some information contained in x509 certificate and using for this purpouses PyOpenSSL module. So far i want to fetch from certificate public key. But PKey object doesn't have appropriate method. Where can I move out of here ? Any ideas how to get public key ? pfx=open('./1.p12','rb').read() PKCS=crypto.load_pkcs12(pfx) cert=PKCS.get_certificate() PKey=cert.get_pubkey() print PKey <OpenSSL.crypto.PKey object at

Programmatically create a x509 certificate for iPhone without using OpenSSL

ⅰ亾dé卋堺 提交于 2020-01-02 04:16:15
问题 Is there a way to programmatically create a self-signed certificate in an app for iPhone just by using the Apple Security framework, ie. not having to mess with OpenSSL? 回答1: It seems like this is not possible without openSSL or RSA libs, I have searched through some answers, and this one seems to be the best, even includes a connection to this question: iOS: How to create PKCS12 (P12) keystore from private key and x509certificate in application programmatically? 来源: https://stackoverflow.com

.NET Framework x509Certificate2 Class, HasPrivateKey == true && PrivateKey == null?

﹥>﹥吖頭↗ 提交于 2020-01-01 18:21:14
问题 I'm attempting to work with an X509 certificate that was originally imported into the CurrentUser keystore on a Windows 10 computer using the "Certificates" snap-in of an MMC. The same procedure has been tested on a Windows 8.1 computer with the same result. Using the standard PowerShell PKI module, I'm getting an X509Certificate2 object using Get-Item: $my_cert = Get-Item Cert:\CurrentUser\My\ADAA82188A17THUMBPRINTXXXXXXXXXXX The output of $my_cert | fl * is as follows: PSPath : Microsoft

.NET Framework x509Certificate2 Class, HasPrivateKey == true && PrivateKey == null?

回眸只為那壹抹淺笑 提交于 2020-01-01 18:21:11
问题 I'm attempting to work with an X509 certificate that was originally imported into the CurrentUser keystore on a Windows 10 computer using the "Certificates" snap-in of an MMC. The same procedure has been tested on a Windows 8.1 computer with the same result. Using the standard PowerShell PKI module, I'm getting an X509Certificate2 object using Get-Item: $my_cert = Get-Item Cert:\CurrentUser\My\ADAA82188A17THUMBPRINTXXXXXXXXXXX The output of $my_cert | fl * is as follows: PSPath : Microsoft

Azure IoT Hub Certificate

别来无恙 提交于 2020-01-01 14:57:41
问题 I'm trying to publish some data on the Azure IoT hub using Mqtt. I've succesfully published some data, using a SAS token. But my customer wants a x509 self generated & self signed certificate. Azure is supporting this, but doesn't give much information about it. (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security#supported-x509-certificates) A self-generated and self-signed X-509 certificate. A device manufacturer or in-house deployer can generate these certificates and

Azure IoT Hub Certificate

北慕城南 提交于 2020-01-01 14:57:30
问题 I'm trying to publish some data on the Azure IoT hub using Mqtt. I've succesfully published some data, using a SAS token. But my customer wants a x509 self generated & self signed certificate. Azure is supporting this, but doesn't give much information about it. (https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-security#supported-x509-certificates) A self-generated and self-signed X-509 certificate. A device manufacturer or in-house deployer can generate these certificates and

Does OpenSSL really need a path to openssl.conf?

我的未来我决定 提交于 2020-01-01 02:29:29
问题 I want to create a self-signed-certificate in PHP 5.x. with my own (alternative) openssl configuration which should be defined by my PHP code. The PHP script will run on different environments (shared hosting webservers). The official PHP Manual says: By default, the information in your system openssl.conf is used to initialize the request; you can specify a configuration file section by setting the config_section_section key of configargs. You can also specify an alternative openssl

Does OpenSSL really need a path to openssl.conf?

扶醉桌前 提交于 2020-01-01 02:29:09
问题 I want to create a self-signed-certificate in PHP 5.x. with my own (alternative) openssl configuration which should be defined by my PHP code. The PHP script will run on different environments (shared hosting webservers). The official PHP Manual says: By default, the information in your system openssl.conf is used to initialize the request; you can specify a configuration file section by setting the config_section_section key of configargs. You can also specify an alternative openssl

Convert X.509 certificate from hex form to .cer format

♀尐吖头ヾ 提交于 2019-12-31 03:04:30
问题 How to convert X.509 certificate from a hex-dump form to .CER format? Additionally, should be blank space separators removed from hex dump first? Thanks. 回答1: You could use ASN.1 editor. It has a data converter that will convert HEX to PEM format of data. the source is also available so if you need to use it in code you can look how it is done. Or you could use certutil.exe using command certutil -decodehex c:\cert.hex c:\cert.cer 回答2: Normally .cer can either be binary encoded - DER - or it