Skip to content

Issues creating account with Actalis EAB #29

@alyx161

Description

@alyx161

Hi,

I’m running into issues with account creation when using Actalis as the CA.
Since Actalis requires EAB, I’ve used the ZeroSSL example as a basis.

eab := acme.ExternalAccountBinding{
	KeyIdentifier: acmeProvider.KeyIdentifier,
	MacKey:        acmeProvider.MacKey,
	Algorithm:     "HS256",
	HashFunc:      crypto.SHA256,
}

account, err := client.NewAccountOptions(
	privKey,
	acme.NewAcctOptAgreeTOS(),
	acme.NewAcctOptWithContacts("mailto:[email protected]"),
	acme.NewAcctOptExternalAccountBinding(eab),
)
if err != nil {
	return acme.Account{}, fmt.Errorf("error creating new account: %v", err)
}

acc := acmeAccountFile{
	PrivateKey: string(key2pem(privKey)),
	Url:        account.URL,
}

When running this, the ACME server replies with:

error creating new account: acme: error code 400 \"urn:ietf:params:acme:error:userActionRequired\": onlyReturnExisting must be true

If I then add NewAcctOptOnlyReturnExisting(), the request obviously fails:

account, err := client.NewAccountOptions(
	privKey,
	acme.NewAcctOptAgreeTOS(),
	acme.NewAcctOptWithContacts("mailto:[email protected]"),
	acme.NewAcctOptExternalAccountBinding(eab),
	acme.NewAcctOptOnlyReturnExisting(),
)
error creating new account: acme: error code 400 \"urn:ietf:params:acme:error:accountDoesNotExist\": "

Any ideas on what I might be missing here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions