René's URL Explorer Experiment


Title: OpenSSHPrivateKeyUtil.encodePrivateKey does not work with ECDSA key pairs · Issue #2240 · bcgit/bc-java · GitHub

Open Graph Title: OpenSSHPrivateKeyUtil.encodePrivateKey does not work with ECDSA key pairs · Issue #2240 · bcgit/bc-java

X Title: OpenSSHPrivateKeyUtil.encodePrivateKey does not work with ECDSA key pairs · Issue #2240 · bcgit/bc-java

Description: Following code does not work for ECDSA keys (with secp256r1): AsymmetricKeyParameter bprv = PrivateKeyFactory.createKey(key.getEncoded()); encodedKey = OpenSSHPrivateKeyUtil.encodePrivateKey(bprv); It produces a private key which cannot ...

Open Graph Description: Following code does not work for ECDSA keys (with secp256r1): AsymmetricKeyParameter bprv = PrivateKeyFactory.createKey(key.getEncoded()); encodedKey = OpenSSHPrivateKeyUtil.encodePrivateKey(bprv);...

X Description: Following code does not work for ECDSA keys (with secp256r1): AsymmetricKeyParameter bprv = PrivateKeyFactory.createKey(key.getEncoded()); encodedKey = OpenSSHPrivateKeyUtil.encodePrivateKey(bprv);...

Opengraph URL: https://github.com/bcgit/bc-java/issues/2240

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenSSHPrivateKeyUtil.encodePrivateKey does not work with ECDSA key pairs","articleBody":"Following code does not work for ECDSA keys (with secp256r1):\n\n            AsymmetricKeyParameter bprv =\n                PrivateKeyFactory.createKey(key.getEncoded());\n            encodedKey = OpenSSHPrivateKeyUtil.encodePrivateKey(bprv);\n\n\nIt produces a private key which cannot be used neither by openssh, nor by jssh.\n\nHowever, Topaco's answer to https://stackoverflow.com/questions/79262968/how-to-convert-a-ecprivatekey-to-a-pem-encoded-openssh-format works all right.\n\nOpenSSHPrivateKeyUtil.encodePrivateKey does work fine for Ed25519.\n\nIt doesn't work for RSA either, but I'm not sure whether it's supposed to, as RSA is supposed to be packed in a different PEM wrapper (which has -----BEGIN PRIVATE KEY----- instead of -----BEGIN OPENSSH PRIVATE KEY-----).\n","author":{"url":"https://github.com/AlainKnaff","@type":"Person","name":"AlainKnaff"},"datePublished":"2026-01-23T20:19:45Z","url":"https://github.com/bcgit/bc-java/issues/2240"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cc2af006-02a4-0177-8479-bea782008050
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3E8:1B6B03:18BB6E:22E69A:6AFBEF47
html-safe-noncee160943d37c55c6eef62f8124c61928be3971f5f22bcac5a69d426e9fefed20f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0U4OjFCNkIwMzoxOEJCNkU6MjJFNjlBOjZBRkJFRjQ3IiwidmlzaXRvcl9pZCI6IjYzMjk0NjU5OTU4MTQwNzQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf68143b84d1cff77cd6bd8805e16fe289426c57a79c2ac32a4ff099d919a6ee1
hovercard-subject-tagissue:3849039556
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bcgit/bc-java/2240/issue_layout
twitter:imagehttps://opengraph.githubassets.com/06520d191e1cc721603d0844c7398ab866ffa133f66b34aa040c8e40370f350e/bcgit/bc-java/issues/2240
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/06520d191e1cc721603d0844c7398ab866ffa133f66b34aa040c8e40370f350e/bcgit/bc-java/issues/2240
og:image:altFollowing code does not work for ECDSA keys (with secp256r1): AsymmetricKeyParameter bprv = PrivateKeyFactory.createKey(key.getEncoded()); encodedKey = OpenSSHPrivateKeyUtil.encodePrivateKey(bprv);...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlainKnaff
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
turbo-cache-controlno-preview
go-importgithub.com/bcgit/bc-java git https://github.com/bcgit/bc-java.git
octolytics-dimension-user_id4566970
octolytics-dimension-user_loginbcgit
octolytics-dimension-repository_id10416648
octolytics-dimension-repository_nwobcgit/bc-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id10416648
octolytics-dimension-repository_network_root_nwobcgit/bc-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/bcgit/bc-java/issues/2240#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbcgit%2Fbc-java%2Fissues%2F2240
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbcgit%2Fbc-java%2Fissues%2F2240
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=bcgit%2Fbc-java
Reloadhttps://github.com/bcgit/bc-java/issues/2240
Reloadhttps://github.com/bcgit/bc-java/issues/2240
Reloadhttps://github.com/bcgit/bc-java/issues/2240
bcgithttps://github.com/bcgit
bc-javahttps://github.com/bcgit/bc-java
Codehttps://github.com/bcgit/bc-java
Issues47 (47)https://github.com/bcgit/bc-java/issues
Pull requests18 (18)https://github.com/bcgit/bc-java/pulls
Discussionshttps://github.com/bcgit/bc-java/discussions
Actionshttps://github.com/bcgit/bc-java/actions
Projectshttps://github.com/bcgit/bc-java/projects
Wikihttps://github.com/bcgit/bc-java/wiki
Security and qualityhttps://github.com/bcgit/bc-java/security
Insightshttps://github.com/bcgit/bc-java/pulse
https://github.com/bcgit/bc-java
New issuehttps://github.com/login?return_to=https://github.com/bcgit/bc-java/issues/2240
New issuehttps://github.com/login?return_to=https://github.com/bcgit/bc-java/issues/2240
OpenSSHPrivateKeyUtil.encodePrivateKey does not work with ECDSA key pairshttps://github.com/bcgit/bc-java/issues/2240#top
bugSomething isn't workinghttps://github.com/bcgit/bc-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/AlainKnaff
AlainKnaffhttps://github.com/AlainKnaff
on Jan 23, 2026https://github.com/bcgit/bc-java/issues/2240#issue-3849039556
https://stackoverflow.com/questions/79262968/how-to-convert-a-ecprivatekey-to-a-pem-encoded-openssh-formathttps://stackoverflow.com/questions/79262968/how-to-convert-a-ecprivatekey-to-a-pem-encoded-openssh-format
https://github.com/dghgit
dghgithttps://github.com/dghgit
on May 4, 2026https://github.com/bcgit/bc-java/issues/2240#issuecomment-4368632039
https://www.bouncycastle.org/betashttps://www.bouncycastle.org/betas
hubothttps://github.com/hubot
on May 4, 2026https://github.com/bcgit/bc-java/issues/2240#event-25125745245
generalized openSSH ECDSA key encoding, relates to github #2240https://github.com/bcgit/bc-java/commit/aa7d3f6416231354565d6e3cdf5b59049480118a
#2240https://github.com/bcgit/bc-java/issues/2240
aa7d3f6https://github.com/bcgit/bc-java/commit/aa7d3f6416231354565d6e3cdf5b59049480118a
https://github.com/AlainKnaff
AlainKnaffhttps://github.com/AlainKnaff
on May 4, 2026https://github.com/bcgit/bc-java/issues/2240#issuecomment-4374574548
dghgithttps://github.com/dghgit
completedhttps://github.com/bcgit/bc-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 4, 2026https://github.com/bcgit/bc-java/issues/2240#event-25153699838
winfriedgerlachhttps://github.com/winfriedgerlach
bugSomething isn't workinghttps://github.com/bcgit/bc-java/issues?q=state%3Aopen%20label%3A%22bug%22
on Jul 15, 2026https://github.com/bcgit/bc-java/issues/2240#event-28005534792
Sign up for freehttps://github.com/signup?return_to=https://github.com/bcgit/bc-java/issues/2240
Sign in to commenthttps://github.com/login?return_to=https://github.com/bcgit/bc-java/issues/2240
bugSomething isn't workinghttps://github.com/bcgit/bc-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.