Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags don't match #3

Open
upsground opened this issue Oct 30, 2022 · 2 comments
Open

Tags don't match #3

upsground opened this issue Oct 30, 2022 · 2 comments

Comments

@upsground
Copy link

Does it work in the current version of Firefox?
I tried:
decrypter, err := gonss3.New(profilePath, []byte{})
It returns:
asn1: structure error: tags don't match (4 vs {class:0 tag:16 length:65 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false}

@rusq
Copy link
Owner

rusq commented Oct 31, 2022

Hey @upsground , haven't tested it for a while, switched to another project. I think your best bet would be to call the new native NSS library, most likely something has changed. If you're planning on figuring it out in go, would be great if you could submit a PR?

@rusq
Copy link
Owner

rusq commented Oct 31, 2022

Just noticed that you're calling it without a master password -

decrypter, err := gonss3.New(profilePath, []byte{})

Are you able to try it with a valid master password? That might be the reason. For example

decrypter, err := gonss3.New(profilePath, []byte("masterpass"))

You could also check if this works for the firefox? https://github.com/rusq/browserpass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants