-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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
Labels
No labels