Distinguished Encoding Rules (DER) certificate encoding is a method of turning ASN.1 attributes and values into a machine-friendly format.
Questions tagged [der]
215 questions
4
votes
1 answer
Generate RSA private key from n, e, d, p, q values in bash with OpenSSL
I have calculated n, e, d, p, q values of an RSA key.
Now, how can I generate a private key file (pem or der) with openssl command line tools?
I was thinking about
openssl asn1parse -genconf asn1.cnf -noout -out asn1.der
but I cannot understand…

Lorenzo Barbagli
- 1,241
- 2
- 16
- 34
4
votes
3 answers
How to decode a .csr file in java to extract its content
I have three kinds of files to decode namely .csr and .der and .key files.I am able to decode .der file using the java as below.
public class Base64Decoder {
public static void main(String[] args) throws FileNotFoundException, IOException {
…

LathaPatil
- 143
- 1
- 3
- 9
4
votes
1 answer
PHP DSA Signature Conversion from DER ASN.1 to XMLDSIG P1363
I am writing a PHP app (acting as a SAML IdP) which is trying to do a login via a SAML Response to a server (acting as the SAML SP. I am currently stuck with the server rejecting the request (I just get a 500 Bad Request).
I have written a test app…

Torid
- 4,176
- 1
- 28
- 29
3
votes
2 answers
ASN1C DER decoder
I'm trying to create simple DER decoder - console application that just outputs content of given data structure (encoded in DER format, like this one).
I have problems with running this example: A ''Rectangle'' Decoder .
I'm trying to compile it…

LihO
- 41,190
- 11
- 99
- 167
3
votes
2 answers
ASN.1 / DER Encoding of Integers
I'm currently starting to work with DER (Distinguished Encoding Rules) encoding and have problems understanding the encoding of integers.
In the reference document https://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf this encoding is…

Bilbo
- 63
- 1
- 7
3
votes
1 answer
Convert der certificate to p12
I am trying to upload my adobe air app to Google Play. I have opted in for Google Play App Signing and cannot opt out now. They provide me with .der certificate which I wish to convert to p12 in order to use it in my adobe AIR app. I know this can…

Shahbaz Pothiawala
- 1,175
- 5
- 20
- 38
3
votes
3 answers
Converting PEM to DER in C++
I have a certificate in PEM format that I want to convert it to DER format using OpenSLL functions in C++.
How can I do it?
Thanks.

itayb
- 139
- 3
- 10
3
votes
1 answer
OpenSSL PHP Function doesn't work
I'm looking for days how to translate this command to OpenSLL php function:
$ openssl pkcs8 -inform DER -in aaa010101aaa_CSD_01.key -out AAA010101AAA.key.pem
Enter Password: a0123456789
This work perfect, but I can't (I don't know) use the correct…

Palmor
- 39
- 2
3
votes
1 answer
Where is my interpretation of ASN1 der wrong?
Here is what my structure looks like:
SET OF
SEQUENCE:
INTEGER: XX
INTEGER: YY
My encoding looks like this:
11 08 10 06 02 01 XX 02 01 YY
11 08 -- SET OF
10 06 -- SEQUENCE
However, when I decode with openssl, I don't see…

ExceptionHandler
- 213
- 1
- 8
- 24
3
votes
2 answers
Load a .key file from DER format to PEM with PHP
I have a code that makes the transformation but need to do it with native PHP functions because it is not activated support for running exec:
exec("openssl pkcs8 -inform DER -in 'archivo.key' -out 'archivo.key.pem' -passin…

Nestor
- 41
- 1
- 6
3
votes
0 answers
Unwrapping DER signed content in PHP
I have a DER signed file and I want to extract his content stripping the signature...
Php openssl_pkcs7_verify function only works with PEM signed files, that's the first thing I've discovered. So I've base64 encoded the content, saved it to a file…

Damiano Daccò
- 31
- 1
3
votes
1 answer
Import DER encoded public key using crypto API
Is it possible to import DER encoded public key using MS crypto API? So i can verfiy signatures ?
I need a piece of code or help for MS Crypto API for importing DER encoded public-key/certificate.

Ali
- 151
- 3
- 11
3
votes
1 answer
Install .der file and return back to the app on completion
I have an app that needs a certificate installing, which it does so using
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:CERTIFICATE_URL]];
This hits a web server, gets the certificate and starts the Settings app allowing the user…

bandejapaisa
- 26,576
- 13
- 94
- 112
3
votes
1 answer
Translate PEM to DER on Windows CE 3
I have a RSA public key crypto wrapper which works quite well in desktop Windows and Windows Embedded/POSReady. I need to port this system to both Windows CE 5 and Windows CE 3. In part of this system, I allow developers to import various crypto…

Patrick W
- 317
- 1
- 13
2
votes
1 answer
Convert DER-encoded data to text in c#
I have opened another question on how to save certificate data as human readable ASN.1-text.
But maybe this question is to specific and i would have better asked more generalized:
Is there a converter for converting DER-encoded data into plain text…

HCL
- 36,053
- 27
- 163
- 213