Skip to content

public_key:get_asn1_module - function_clause w/ TBSCertificate #10001

Open
@rlipscombe

Description

@rlipscombe

Describe the bug

Similar to #9880, I'm getting failures when DER-encoding TBSCertificate entities. But this is still a problem in OTP-28.0.1, wherein #9880 is shown as fixed.

 {error,function_clause,
                           [{public_key,get_asn1_module,
                                ['TBSCertificate'],

To Reproduce

Given a populated #'Certificate'{} record, try to DER-encode it:

to_der(#'Certificate'{} = Certificate) ->
    public_key:der_encode('Certificate', Certificate).

See, for example, https://github.com/rlipscombe/erl509/actions/runs/15967723875/job/45031671154

Expected behavior

I'd get a DER-encoded certificate.

Affected versions

OTP-28.0.1

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:PSAssigned to OTP team PS

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions