Questions tagged [der]

Distinguished Encoding Rules (DER) certificate encoding is a method of turning ASN.1 attributes and values into a machine-friendly format.

215 questions
0
votes
1 answer

How can I extract certificates contained in an ashx file with openssl?

in a SCEP process I'm developing, the first step has to be this one (link) 1. CA Authentication SCEP uses the CA certificate in order to secure the message exchange for the CSR. As a result, it is necessary to obtain a copy of the CA…
Noob_Number_1
  • 725
  • 5
  • 20
0
votes
0 answers

Can I rescue this corrupted DER format file?

I have two files that represent the same DER format public key. They both look like this when I look at them in a text editor (sublime) 3081 9f30 0d06 092a 8648 86f7 0d01 0101 0500 0381 8d00 3081 8902 8181 00d2 d475 9de6 d795 7d0f e5e8 375f 3605…
David Lewine
  • 101
  • 2
  • 12
0
votes
2 answers

M2Crypto: read PKCS#7 structure in DER format?

M2Crypto SMIME object has methods to load itself from PKCS#7 file in PEM format: smime_object = SMIME.load_pkcs7('file.pem') I do not see any method to load from PKCS#7 file in DER format. How can this be done?
Konstantin Shemyak
  • 2,369
  • 5
  • 21
  • 41
0
votes
1 answer

DER-Encoding of ASN.1 Types

I'm having trouble finding some explaination on how to encode/decode various types in Distinguished Encoding Rules. How are strings (IA5String, PrintableString) and time (UTCTime, GeneralTime) encoded?
Nocta
  • 199
  • 2
  • 9
0
votes
1 answer

Parsing X509 extensions with pyasn1

I've got an extension which is described as follows: Extension().setComponentByPosition(0, ObjectIdentifier(2.5.29.19)) .setComponentByPosition(1, Boolean('False')) .setComponentByPosition(2, Any(hexValue='04023000')) So based…
viraptor
  • 33,322
  • 10
  • 107
  • 191
0
votes
1 answer

Build PublicKey from Base64 DER - Java

I am having an issue in passing a base64 encoded DER cert to a Java application for it to extract the public key from. I can make this work in both objective-c & ruby, but am struggling with an error in Java. I have the following DER base64 key…
ABrowne
  • 1,574
  • 1
  • 11
  • 21
0
votes
1 answer

Convert RSA Public key (2048 bit) from XML format to DER ASN.1 public key for iOS

Am trying to create SecKeyRef from PublicKey (2048 bits) data shared by C# in XML format. The data looks like…
My3
  • 187
  • 1
  • 8
0
votes
1 answer

How to read/recover a X509Certificate saved on a file using "toString" method on java

I made a terrible mistake saving a list of X509Certificates using the "toString()" method. The library used is "javax.net.ssl.java.security.cert.X509Certificate". I'd like to recover them and save them properly using either a PEM or DER format but…
Narseo
  • 214
  • 1
  • 4
  • 11
0
votes
1 answer

Installation of a DER certificate in Chrome

I'm having issues trying to automatically install a DER certificate with Chrome. The error reported back is Error 502 (net::ERR_NO_PRIVATE_KEY_FOR_CERT). After doing some research, openssl doesn't support DER files with private keys and Chrome only…
user1529891
0
votes
1 answer

cast RSAPrivateKey to PrivateKey and vice versa

I've created an org.bouncycastle.asn1.pkcs.RSAPrivateKey using its static getInstance(byte[]) from a PKCS#1 formated DER bytes, now I want to cast(or change) this to PrivateKey, how to do that??
monim
  • 3,427
  • 3
  • 23
  • 36
0
votes
1 answer

c++ / RSA convert key

I'm trying to encrypt something with RSA. But my rsa libary doesn't seam to be able to use x509 keys. So i tried to convert it to a DER key using openssl. but i don't really understand how it works. i spotted two classes that seemed ok but i can't…
Moufett
  • 51
  • 1
  • 6
0
votes
0 answers

Unknown Option PEM while using OpenSSL-Win32

I am trying to use OpenSSL x509 command in the following manner and getting an "unknown option using PEM" message. I am following the precise steps mentioned in the following…
Jack
  • 989
  • 3
  • 13
  • 24
0
votes
1 answer

Protocol problems: LDAP and GSSAPI authentication

I'm currently trying to implement GSSAPI support in a third-party LDAP library (the Common Lisp library trivial-ldap). I got it to work when authenticating to an AD server (using the mechanism GSS-SPNEGO) but when trying to talk to an OpenLDAP…
Elias Mårtenson
  • 3,820
  • 23
  • 32
0
votes
1 answer

API to convert DN from ASCII string to ASN.1 DER encoding

Is there any API/C program to convert Distinguished name(DN) in ASCII String format to DER encoded ASN.1 DN ? For example I want to encode this string "C=CH, O=Texas, CN=iss" in ASN.1 DER format, in order to send in a packet. Please help me out on…
0
votes
1 answer

Perl module to do equivalent of openssl asn1parse

Using OpenSSL one can get parse and dump an ASN.1 DER file giving an output that looks like this: 100:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName 105:d=5 hl=2 l= 11 prim: PRINTABLESTRING :Big Number Services 118:d=3 …
rlandster
  • 7,294
  • 14
  • 58
  • 96
1 2 3
14
15